Lecture: Lecture 03 - Data Warehouse Conceptual and Logical Design

Core idea

Storage and access choices depend on the expected queries, retained history and populated groups. Estimate fact counts, distinct dimension members and attribute sizes, including indexes and summaries. Aggregation changes occupancy, so detailed-level sparsity cannot simply be reused for every summary table.

Explanation and examples

Standard reports and discussions provide initial workload estimates. Success may add users and change query types. Monitor use after deployment to guide tuning; the source does not provide a complete physical-design algorithm here.

Volume estimation includes event cardinality, hierarchy-domain cardinality, attribute lengths and history, plus indexes and materialized views. The source’s roughly 10% sold-product illustration is a scenario, not a universal occupancy rate.

Added example: two products over two days permit four product-day combinations. Only A on day 1 and B on day 2 sell: occupancy is 2/4. Aggregate to one two-day period per product and both possible groups are populated: occupancy is 2/2.

Rows decreased while the fraction of populated possible groups increased. Page 33 illustrates denser aggregate cubes. The original detail occupancy percentage is therefore not a generally reliable estimator of summary cardinality. Distribution and grouping matter.

Related: Warehouse Size Sparsity and Aggregation, Distributive Algebraic and Holistic Aggregates.

Source

Elena Baralis, Data warehouse design, Politecnico di Torino, DBMG, local DSTBD_3-DWprogConcLog-EN.pdf, 47 PDF pages. References use PDF page order. The source credits modeling material to Golfarelli and Rizzi, Data warehouse, teoria e pratica della progettazione, McGraw Hill, 2006. Original PDF and figures remain local under the copyright notice. Examples and qualifications marked as added are study explanations. Relevant PDF pages: 31-33.

Exam practice and transfer

Worked scenario

A warehouse designer is deciding how to represent warehouse workload volume and aggregate sparsity for a university reporting system. State the intended grain and business meaning first, then trace one example row or query and explain why the representation preserves the required analysis.

Concrete example

A warehouse may store hundreds of millions of populated sales rows while the full product-shop-day cube has billions of possible combinations. Aggregate sparsity must be estimated at each level.

Retrieval questions

  • Explain Warehouse Workload Volume and Aggregate Sparsity 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.