Data Warehouse Schema
Data Warehouse Schema
• Star Schema
• Snowflake Schema
• Galaxy Schema
Star Schema
The star schema is the simplest type of Data Warehouse schema. It is
known as star schema as its structure resembles a star. In the Star
schema, the centre of the star can have one fact tables and numbers
of associated dimension tables.
The snowflake schema architecture is a more complex variation of the star schema used in a
data warehouse, because the tables which describe the dimensions are normalized.
Snowflake schema consists of a fact table surrounded by multiple dimension tables which can
be connected to other dimension tables via many-to-one relationship.
Easy to use Lower query complexity and easy to understand More complex queries and hence less easy to
understand
Query performance Less number of foreign keys and hence shorter query More foreign keys and hence longer query execution
execution time (faster) time (slower)
Type of Data warehouse Good for data marts with simple relationships (1:1 or Good to use for data warehouse core to simplify
1:many) complex relationships (many: many)
When to use When dimension table contains less number of rows, we When dimension table is relatively big in size,
can choose star schema snowflaking is better as it reduces space
Normalization / De-normalization Both Dimension and Fact Tables are in De-Normalized Dimension Tables are in Normalized form but Fact
form Table is in De-Normalized form.