SNOWFLAKE SCHEMA
What is Snowflake Schema?
Snowflake Schema in data warehouse is a logical arrangement of tables in a
multidimensional database such that the ER diagram resembles a snowflake shape.
A Snowflake Schema is an extension of a Star Schema.
It adds additional dimensions to the Dimensional table.
The dimension are normalized which splits data into additional tables.
Example of Snowflake:
Characteristics of Snowflake Schema
The main benefit of the snowflake schema it uses smaller disk space.
Easier to implement a dimension is added to the Schema
Due to multiple tables query performance is reduced
The primary challenge that you will face while using the snowflake schema is that
you need to perform more maintenance efforts because of the more lookup tables.
Star Schema Vs Snowflake Schema: Key
Differences
Following is a key difference between Snowflake schema vs Star schema:
Star Schema Snowflake Schema
Hierarchies for the dimensions are stored Hierarchies are divided into separate tables.
in the dimensional table.
It contains a fact table surrounded by One fact table surrounded by dimension table
dimension tables. which are in turn surrounded by dimension table
In a star schema, only single join creates the In a star schema, only single join creates the
relationship between the fact table and any relationship between the fact table and any
dimension tables. dimension tables.
Simple DB Design. Very Complex DB Design.
Denormalized Data structure and query also Normalized Data Structure.
run faster.
High level of Data redundancy Very low-level data redundancy
Single Dimension table contains aggregated Data Split into different Dimension Tables
data.
Cube processing is faster. Cube processing might be slow because of the
complex join.
Offers higher performing queries using The Snowflake schema is represented by
Star Join Query Optimization. centralized fact table which unlikely connected
with multiple dimensions.
Tables may be connected with multiple
dimensions.