Docsity

Denormalization-Data Warehousing-Lecture Slides, Slides of Basics of Data Warehousing

Partial preview of the text

Download Denormalization-Data Warehousing-Lecture Slides and more Slides Basics of Data Warehousing in PDF only on Docsity!

Ahsan Abdullah

2

De-normalization

Ahsan Abdullah

3

Striking a balance between “good” & “evil”

Flat Table

Data Lists

Data Cubes

st^1 Normal Form nd^2 Normal Form

rd^3 Normal Form

4+ Normal Forms Normalization

De-normalization One big flat file

Too many tables

Ahsan Abdullah

5

Why De-normalization In DSS?

^ Bringing “close” dispersed but related dataitems. ^ Query performance in DSS significantlydependent on physical data model. ^ Very early studies showed performancedifference in orders of magnitude for differentnumber de-normalized tables and rows per table. ^ The level of de-normalization should becarefully considered.

Ahsan Abdullah

6

How De-normalization improves performance?

De-normalization specifically improvesperformance by either:  Reducing the number of tables and hence thereliance on joins, which consequently speeds upperformance.  Reducing the number of joins required duringquery execution, or  Reducing the number of rows to be retrieved fromthe Primary Data Table.

Ahsan Abdullah

8

Areas for Applying De-Normalization Techniques^ ^ Dealing with the abundance of star schemas.^ ^ Fast access of time series data for analysis.

^ Fast aggregate (sum, average etc.) results andcomplicated calculations. ^ Multidimensional analysis (e.g. geography) in a complexhierarchy. ^ Dealing with few updates but many join queries.De-normalization will ultimately affect the database size and

query performance.

Ahsan Abdullah

9

Five principal De-normalization techniques1. Collapsing Tables.- Two entities with a One-to-One relationship.- Two entities with a Many-to-Many relationship.2. Splitting Tables (Horizontal/Vertical Splitting).3. Pre-Joining.4. Adding Redundant Columns (Reference Data).5. Derived Attributes (Summary, Total, Balance etc).