Constraints at Database Level or at ETL side .
2 posters
Page 1 of 1
Constraints at Database Level or at ETL side .
I have observed that constraints in one large datawarehouse are all maintained at ETL level and not at database ( oracle ) . Especially the primary key - foreign key relationship between fact and dimension tables.
I am new to ETL and have always believed that maintaining constraints at database level is a better design .
Can someone throw the benefits of having the constraints all maintained at ETL level ?
I am new to ETL and have always believed that maintaining constraints at database level is a better design .
Can someone throw the benefits of having the constraints all maintained at ETL level ?
renjithmadhavan- Posts : 1
Join date : 2013-10-08
Re: Constraints at Database Level or at ETL side .
It's because the work ETL is doing to transform natural keys to surrogate keys ensures that all surrogate primary keys in the database exist. Database constraints are redundant and only serve to significantly slow down loads into the database.
Often such constraints are declared in the database, but are disabled to prevent actual enforcement. Some DB optimizers use that information in developing a query plan.
Often such constraints are declared in the database, but are disabled to prevent actual enforcement. Some DB optimizers use that information in developing a query plan.
Similar topics
» Allocating Header Level FACT table Dimensions FKs into Line Level Fact
» Automating dimension and fact loading ETL at the database level - Good or Bad?
» Constraints on Dimensions
» Bridge table with SCD on either side
» Coupons At the Order level not the Product Level
» Automating dimension and fact loading ETL at the database level - Good or Bad?
» Constraints on Dimensions
» Bridge table with SCD on either side
» Coupons At the Order level not the Product Level
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum