Constraints on Dimensions
4 posters
Page 1 of 1
Constraints on Dimensions
Hi
I had a quick question on constraints on the dimensional tables. I have several column, ex active_flag (just an example ) whose valid values are Y or N. The dilemma is whether I should leave the constraints in the dimensional tables, or move it to the ETL process. I'm almost sure that I read it somewhere that the ETL should be handling the scenario, but need someone to re-assure me on this.
Thanks for you help.
I had a quick question on constraints on the dimensional tables. I have several column, ex active_flag (just an example ) whose valid values are Y or N. The dilemma is whether I should leave the constraints in the dimensional tables, or move it to the ETL process. I'm almost sure that I read it somewhere that the ETL should be handling the scenario, but need someone to re-assure me on this.
Thanks for you help.
tropically- Posts : 13
Join date : 2009-05-12
Re: Constraints on Dimensions
I'm not sure what you mean by 'moving it to the ETL process'. If you mean, for example, to exclude inactive rows from the dimension table, then I would say no... The problem you run into is if you are loading historical facts, you may not have a dimension row to reference in the fact table. You always want facts to reference a dimension row, if it so happens that that particular dimension value is no longer used, so be it. Leave those attributes in the dimension table.
Re: Constraints on Dimensions
Leave them off. It slows down the load process.
BoxesAndLines- Posts : 1212
Join date : 2009-02-03
Location : USA
Re: Constraints on Dimensions
If it is a constraint for your dimension table then you dont need it in you warehouse. Take it off....
Regards
Shiv
Regards
Shiv
sgudavalli- Posts : 29
Join date : 2010-06-10
Age : 40
Location : Pune, India
Similar topics
» Foreign Key Constraints
» Constraints at Database Level or at ETL side .
» Typical constraints in DDLs
» Constraints on Surrogate Keys?
» Extract to staging: use constraints or not?
» Constraints at Database Level or at ETL side .
» Typical constraints in DDLs
» Constraints on Surrogate Keys?
» Extract to staging: use constraints or not?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|