📜  Star Schema 和 Snowflake Schema 的区别

📅  最后修改于: 2021-09-14 01:30:13             🧑  作者: Mango

星型架构:
星型模式是用于数据仓库的多维模型类型。在星型模式中,包含事实表和维度表。在此模式中使用较少的外键连接。此模式与事实表和维度表形成一个星形。

雪花架构:
Snowflake Schema 也是一种用于数据仓库的多维模型。在雪花模式中,包含事实表、维度表以及子维度表。该模式与事实表、维度表以及子维度表形成雪花。

让我们看看 Star 和 Snowflake Schema 的区别:

S.NO Star Schema Snowflake Schema
1. In star schema, The fact tables and the dimension tables are contained. While in snowflake schema, The fact tables, dimension tables as well as sub dimension tables are contained.
2. Star schema is a top-down model. While it is a bottom-up model.
3. Star schema uses more space. While it uses less space.
4. It takes less time for the execution of queries. While it takes more time than star schema for the execution of queries.
5. In star schema, Normalization is not used. While in this, Both normalization and denormalization are used.
6. It’s design is very simple. While it’s design is complex.
7. The query complexity of star schema is low. While the query complexity of snowflake schema is higher than star schema.
8. It’s understanding is very simple. While it’s understanding is difficult.
9. It has less number of foreign keys. While it has more number of foreign keys.
10. It has high data redundancy. While it has low data redundancy.