Lecture: Lecture 02 - Introduction to Data Warehousing
Core idea
Once the grain is fixed, warehouse size depends on how many dimension combinations receive records. Many possible combinations may be empty, making the dataset sparse. Precomputed summaries can accelerate repeated analysis, but they require storage and maintenance and cannot replace detail needed for other questions.
Source sizing example (page 13)
The slide assumes 730 days, 300 shops and 3,000 products sold each day in each shop:
730 x 300 x 3,000 = 657,000,000 fact rows.
The product catalogue has 30,000 products, not all of which sell daily in every shop. All possible combinations would number 6.57 billion. The 657 million estimate uses the assumed daily sold products, not the entire catalogue.
The slide estimates approximately 21 GB for its fact table. Actual storage depends on representation, row width, indexes, compression and other design choices; the example is not a current hardware requirement.
Sparsity (connected to page 20)
Sparse data occupies only some possible combinations. Relational storage can hold records for populated combinations; multidimensional storage must manage empty space efficiently, including compression. A missing row is not automatically a confirmed zero: the loading conventions and data completeness determine its meaning.
Added explanation: summaries
A precomputed monthly total can avoid repeatedly aggregating daily facts. A materialized view stores a query result and can support this purpose; page 23 mentions materialized views when discussing metadata. Details of refresh strategies are beyond this introduction.
Monthly revenue can be derived from consistent daily revenue. The reverse is impossible without additional evidence: many daily distributions have the same monthly total. Extra summaries also need to stay consistent with changes to their underlying data.
Related: Dimensions Measures and Fact Grain, ROLAP MOLAP and HOLAP.
Source
Elena Baralis, Data warehouse - Introduction, Politecnico di Torino, DBMG, local DSTBD_2-DWintro-EN.pdf, 27 PDF pages. References use PDF page order. Original PDF and figures remain local under the source copyright notice. Added examples and qualifications are study explanations. Relevant pages: 13, 20, 23.
Exam practice and transfer
Worked scenario
A university warehouse is being designed around warehouse size sparsity and aggregation. Start with one concrete business question, identify the facts and context required, and explain what would be lost or misinterpreted if the representation were chosen incorrectly.
Concrete example
A catalogue may contain 30,000 products, but a shop sells only 3,000 on a day. The possible product-shop-day combinations are far larger than the populated fact rows.
Retrieval questions
- Explain Warehouse Size Sparsity and Aggregation in your own words, then identify the problem it prevents in a real data project.
- Give a small example that would violate the concept, and explain how the violation would distort an analysis or query.
- Compare this concept with the nearest related idea in the note and state when each should be used.
These prompts are added study practice. They require explanation and transfer rather than copying a definition.