Docsity

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

Partial preview of the text

Download Denormalization, Techniques - Data Warehousing - Lecture Slides and more Slides Data Warehousing in PDF only on Docsity!

1

Data Warehousing

Lecture-

De-normalization

2

De-normalization

4

What is De-normalization?

 It is not chaos, more like a “controlled crash”

with the aim of performance enhancement

without loss of information.

 Normalization is a rule of thumb in DBMS,

but in DSS ease of use is achieved by way of

denormalization.

 De-normalization comes in many flavors,

such as combining tables, splitting tables,

adding data etc., but all done very carefully.

5

Why De-normalization In DSS?

 Bringing “close” dispersed but related data

items.

 Query performance in DSS significantly

dependent on physical data model.

 Very early studies showed performance

difference in orders of magnitude for different

number de-normalized tables and rows per table.

 The level of de-normalization should be

carefully considered.

7

4 Guidelines for De-normalization

1. Carefully do a cost-benefit analysis

(frequency of use, additional storage,

join time).

2. Do a data requirement and storage

analysis.

3. Weigh against the maintenance issue

of the redundant data (triggers used).

4. When in doubt, don’t denormalize.

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 and
complicated calculations.
 Multidimensional analysis (e.g. geography) in a complex
hierarchy.
 Dealing with few updates but many join queries.
De-normalization will ultimately affect the database size and
query performance.

10

Collapsing Tables

ColA ColB normalized^ ColA^ ColC ColA ColB ColC denormalized  Reduced storage space.  Reduced update time.  Does not changes business view.  Reduced foreign keys.  Reduced indexing.