Thursday, August 23, 2012

snowflake VS star schema

Snowflake SchemaStar Schema
Query Performance:More foreign keys-and hence more query execution timeLess no. of foreign keys and hence lesser query execution time
Normalization:Has normalized tablesHas De-normalized tables
Type ofDatawarehouse:Good to use for small datawarehouses/datamartsGood for large datawarehouses
Joins:Higher number of JoinsFewer Joins
Dimension table:It may have more than onedimension table for each dimensionContains only single dimension table for each dimension
When to use:When dimension table is relatively big in size, snoflaking is better as it reduces space.When dimension table contains less number of rows, we can go forStar schema.
Ease of maintenance/change:No redundancy and hence more easy to maintain and changeHas redundant data and hence less easy to maintain/change
Ease of Use:More complex queries and hence less easy to understandLess complex queries and easy to understand