Kimball Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Constraints on Dimensions

4 posters

Go down

Constraints on Dimensions Empty Constraints on Dimensions

Post  tropically Tue Jun 22, 2010 2:38 pm

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.

tropically

Posts : 13
Join date : 2009-05-12

Back to top Go down

Constraints on Dimensions Empty Re: Constraints on Dimensions

Post  ngalemmo Tue Jun 22, 2010 3:53 pm

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.
ngalemmo
ngalemmo

Posts : 3000
Join date : 2009-05-15
Location : Los Angeles

http://aginity.com

Back to top Go down

Constraints on Dimensions Empty Re: Constraints on Dimensions

Post  BoxesAndLines Tue Jun 22, 2010 4:25 pm

Leave them off. It slows down the load process.
BoxesAndLines
BoxesAndLines

Posts : 1212
Join date : 2009-02-03
Location : USA

Back to top Go down

Constraints on Dimensions Empty Re: Constraints on Dimensions

Post  sgudavalli Wed Jun 23, 2010 3:00 am

If it is a constraint for your dimension table then you dont need it in you warehouse. Take it off....

Regards
Shiv

sgudavalli

Posts : 29
Join date : 2010-06-10
Age : 40
Location : Pune, India

Back to top Go down

Constraints on Dimensions Empty Re: Constraints on Dimensions

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum