Business keys in Link tables #36
Replies: 2 comments 1 reply
-
Hi, business keys in links are sometimes asked for. What we recommend is to either: switch the whole DV model from hash keys to business keys if the platform supports it (e.g. on many MPP databases) and if the whole solution is built on this platform (not a distributed solution across multiple environments with mixing tool stack). Tests have shown that on PB-scale those business keys in links present problems, especially on traditional database servers. With these arguments, we would not implement both in links in datavault4dbt as a standard solution. You can however, implement this in your forked version, just keep potential drawbacks in mind. |
Beta Was this translation helpful? Give feedback.
-
Thank you Michael! Just to be sure "PB-scale" means on peta byte scale (tables much larger than 1000 tera bytes). |
Beta Was this translation helpful? Give feedback.
-
As far as I know business keys in links aren't "illegal". They don't change, they reduce joins and thus increase query performance. What do you think about enabling them for links just like in hubs?
example orders_customers_l.sql
Beta Was this translation helpful? Give feedback.
All reactions