Forum

 
ForumForumDiscussionsDiscussionsSQLBI Methodolo...SQLBI Methodolo...Do surrogate keys belong in the staging database?Do surrogate keys belong in the staging database?
Previous Previous
 
Next Next
New Post
 7/27/2009 8:30 PM
 

I can't remember if you touched on this in your BI methodology, but do you feel surrogate keys should be managed in your staging database?  In most implementations, I have stored both the natural key and surrogate key within the dimension table, and use this as a means to lookup the surrogate key for the fact loads.  Some places I have read that you should keep your surrogate key architecture within the staging database and perform the lookups at that level instead of the dimension- the dimension will just  inherit the surrogate key from the staging table instead of using it's own identity column.  In practice, which is the preferred method?  Re-reading some Kimball articles, he mentions having lookup or mapping tables that contain the surrogate/natural key combinations only so that it is small and efficient and can be pinned into memory, but with todays computer power and memory this is less of an issue I believe.  What are your thoughts?

 

 

New Post
 7/28/2009 1:04 AM
 

In SQLBI methodology, the data warehouse have only application keys and not surrogate keys. Surrogate keys belongs only to data marts, which are modeled following Kimball methodologies. Since our data mart is fed only by extracting data from data warehouse, the surrogate keys are local to the data mart only.

It is not a question of performance, but of separation between different layers of the solution.

Marco

Previous Previous
 
Next Next
ForumForumDiscussionsDiscussionsSQLBI Methodolo...SQLBI Methodolo...Do surrogate keys belong in the staging database?Do surrogate keys belong in the staging database?