我计划在 BigQuery 中存储多个维度表。 在规范化设计中,我将拥有包含引用一个或多个维度表的外键的事实表。
我读过一些关于非规范化的内容,我想知道我应该走多远。一般来说,人们会将事实数据和维度数据混合到 BigQuery 中的一张表中吗?
关于嵌套字段: 如果单个事实引用多个维度表,您会在每个维度表中都有一个嵌套列,还是只有一个事实表,然后使用联接?
最佳答案
In general, do people mix fact and dimension data together into one table in BigQuery?
是的!
In case a single fact refers to multiple dimension tables, would you have a nested column in each of the dimension tables, or just one fact table and then use joins?
您应该将维度数据嵌套在事实数据中,反之亦然。
关于google-bigquery - BigQuery 表设计 - 混合事实表和维度表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49450782/