Reuse or replicate dimensions?
3 posters
Page 1 of 1
Reuse or replicate dimensions?
Hello,
I have several fields on my fact table that make reference to the completeness of different data (i.e. personal data, test data ...) and they can take three values (No data, complete, incomplete). What would be a better practice, to reuse the same dimension table for all this fields, or to have separate dimensions tables?
On one hand, separate dimensions allow you to modify the values for one field if it was necessary, but on the other hand, if this values are not modified (what is the most probable), you avoid to have identical tables.
I don't know what the way to go is, to reuse as many table as possible or to have one tabld for each dimension (field) (except for thr time dimension).
Thank you.
I have several fields on my fact table that make reference to the completeness of different data (i.e. personal data, test data ...) and they can take three values (No data, complete, incomplete). What would be a better practice, to reuse the same dimension table for all this fields, or to have separate dimensions tables?
On one hand, separate dimensions allow you to modify the values for one field if it was necessary, but on the other hand, if this values are not modified (what is the most probable), you avoid to have identical tables.
I don't know what the way to go is, to reuse as many table as possible or to have one tabld for each dimension (field) (except for thr time dimension).
Thank you.
vjsp90- Posts : 4
Join date : 2015-05-10
Re: Reuse or replicate dimensions?
Why not add this attribute to the dimension that is having its completeness measured?
nick_white- Posts : 364
Join date : 2014-01-06
Location : London
Re: Reuse or replicate dimensions?
I think I don't understand your answer.
The fact table have have a lot of fields with foreign keys that make reference to the dimension tables. I.E. personal data (-1,0,1) and in the dimension table (-1 -> No data, 0 -> Incomplete, 1 -> Complete).
If you are suggesting degenerate dimensions, this is only the easiest example I have, so it's not a real option.
The fact table have have a lot of fields with foreign keys that make reference to the dimension tables. I.E. personal data (-1,0,1) and in the dimension table (-1 -> No data, 0 -> Incomplete, 1 -> Complete).
If you are suggesting degenerate dimensions, this is only the easiest example I have, so it's not a real option.
vjsp90- Posts : 4
Join date : 2015-05-10
Re: Reuse or replicate dimensions?
Nick is suggesting that completeness is an characteristic of the dimension. In other words, you store the completeness flag on each dimension table.
Storing as a degenerate on the fact doesn't appear to make sense. Could you elaborate why you think it belongs on the fact table?
Storing as a degenerate on the fact doesn't appear to make sense. Could you elaborate why you think it belongs on the fact table?
Re: Reuse or replicate dimensions?
Ok. There's no a dimension for these data. The only thing we know it's if something is complete, but we don't have such data in the database. It's just for statatistics, so we don't have the real data in this model.
vjsp90- Posts : 4
Join date : 2015-05-10
Similar topics
» To reuse or not to reuse staging table - That is the question
» Replicate Fact record because Dimension has changed
» Schema Roadblock: Dimension vs Fact [Dimensions w/FKs to other Dimensions?]
» Question about Dimensions with SKeys to join with other dimensions.
» Correlated - Separate Dimensions OR Single Dimensions ?
» Replicate Fact record because Dimension has changed
» Schema Roadblock: Dimension vs Fact [Dimensions w/FKs to other Dimensions?]
» Question about Dimensions with SKeys to join with other dimensions.
» Correlated - Separate Dimensions OR Single Dimensions ?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|