One Fact Table or Two
2 posters
Page 1 of 1
One Fact Table or Two
I am working on a star schema for a construction project model. We have 2 groups of users- one who wants to see only approved projects and the other group want to see project (approved and unapproved).
One option was to build 2 facts, one only with approved and other one with all the project. But this option will increase ETL Maintenance and increase db storage.
Second option was to create one fact table with all the projects and adding an indicator to the fact (Approved or Unapproved) and then creating a view that filters only approved projects for the first group of users. This option is less load on ETL but not sure if keeping indicators in fact is good idea.
Not sure if there is any other option.
Please advise.
Thanks
One option was to build 2 facts, one only with approved and other one with all the project. But this option will increase ETL Maintenance and increase db storage.
Second option was to create one fact table with all the projects and adding an indicator to the fact (Approved or Unapproved) and then creating a view that filters only approved projects for the first group of users. This option is less load on ETL but not sure if keeping indicators in fact is good idea.
Not sure if there is any other option.
Please advise.
Thanks
KKumar- Posts : 22
Join date : 2011-07-29
RE: One Fact Table or Two
you should try the 2nd option, keeping the indicator in your fact. You can store the indicator in a junk dimension. If tomorrow you decide to have stage other than approved and unapproved for a project then this way you don't have to change the ETL code.
thanks
thanks
hkandpal- Posts : 113
Join date : 2010-08-16
![-](https://2img.net/i/empty.gif)
» 'Routing' the grain of the fact table to multpile members of multiple dimensions causes the fact table to 'explode'
» Integrating new fact table which has one to many relationship with the main fact table in existing star schema
» How to create fact table with measures derived from comparing two fact table rows
» Healthcare Hospital Stay fact table - transaction fact table - a row for In and a row for Out?
» Design a snapshot Fact table in data mart from compliance-enable fact table in enterprise data warehouse
» Integrating new fact table which has one to many relationship with the main fact table in existing star schema
» How to create fact table with measures derived from comparing two fact table rows
» Healthcare Hospital Stay fact table - transaction fact table - a row for In and a row for Out?
» Design a snapshot Fact table in data mart from compliance-enable fact table in enterprise data warehouse
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum