In a star schema, are foreign key constraints between facts and dimensions neccessary?

前端 未结 7 1992
清酒与你
清酒与你 2021-01-02 19:33

I\'m getting my first exposure to data warehousing, and I’m wondering is it necessary to have foreign key constraints between facts and dimensions. Are there any major downs

相关标签:
7条回答
  • 2021-01-02 20:00

    I don't know about necessary, but I feel they are good for data integrity reasons. You want to make sure that your fact table is always pointing to a valid record in the dimension table. Even if you are sure this will happen, why not have the database validate the requirement for you?

    0 讨论(0)
提交回复
热议问题