Docsity

Snowflake Schema: Advantages, Disadvantages, and Normalization Options, Slides of Data Warehousing

Partial preview of the text

Download Snowflake Schema: Advantages, Disadvantages, and Normalization Options and more Slides Data Warehousing in PDF only on Docsity!

Snowflake Schema Advantages and Disadvantages Dimensions – Some Characteristics

Contents

Snowflake^ schema

architecture^

is^ a^ more complex variation of a star schema design. The main difference is that

dimensional tables in a snowflake schema are normalized

, so they

Snowflake Schema have a typical relational database design. More complicated SQL joins must be issued toquery them

Star Schema

(Relationship Symbols)

Snowflake Schema: Product Dimension Partially Normalized

Saving in Storage Space?? Example Production Dimension Table No. of rows = ~500, 000 rows Space occupied = ~200 MB Space required for one Category Name = 20-bytes After normalization Space required for category key = 4-bytes Net saving = 500,000 x 16 = ~8MB 4% saving in storage!!! Fact Table Size = ~20GB

Snowflake SchemaAdvantages • Small savings in storage space • Normalized structures are easier to update and maintain Disadvantages • Schema less intuitive^ and^ end-users

are^ put^ off^ by^

the

complexity •^ Ability to browse through the contents difficult •^ Degraded query performance because of additional joins

Dimension Change Slowly Changing Dimension (SCD) - atechnique used to store the historical value ofdimension attributes

Types of SCD SCD type 1 overwrites the old values of theattributes so the old values are not kept SCD type 2 keeps the old values by creating anew row for each change SCD type 3 keeps the old values by putting themin another column

Multiple Hierarchies

Rapidly Changing Dimension (RCD)