a question on database design# Database - 数据库
S*d
1 楼
一个relational database里,任何一个table里都要track 某些field的history。
this database is read only for users and will be loaded weekly from a
snapshot of data source.
在DESIGN阶段的问题哈,这个DATABASE还不存在
现在我有两个方案。
一,不拆开任何一个ENTITY, still both current data and historical data in
the same table, but add date fields to indicate when the row of data is
valid.
二,拆开ENTITY为二,一个TABLE放那些不要求KEEP HISTORY的FIELDS,一个TABLE放那
些要求KEEP HISTORY的FIELDS
大家帮我看看,也许还有方案三,方案四
this database is read only for users and will be loaded weekly from a
snapshot of data source.
在DESIGN阶段的问题哈,这个DATABASE还不存在
现在我有两个方案。
一,不拆开任何一个ENTITY, still both current data and historical data in
the same table, but add date fields to indicate when the row of data is
valid.
二,拆开ENTITY为二,一个TABLE放那些不要求KEEP HISTORY的FIELDS,一个TABLE放那
些要求KEEP HISTORY的FIELDS
大家帮我看看,也许还有方案三,方案四