Data Warehouse

Context: FIT3003_MOC · the storage facility Data Engineering delivers · read multidimensionally by OLAP, physically stored as a Star Schema

Quick Revision

  • 🎯 Objective: the need for an effective decision support system motivated a new storage facility ➔ subject-oriented, pre-designed, precomputed, queried as a cube rather than as normalised transactions.
  • ⚡ Key Constraint: stating why ER + normalisation is the wrong tool — normalised operational design does not serve advanced analysis, so a new modelling technique was required.

📝 Core

  • Operational database ➔ runs the business transaction-by-transaction: current, detailed, normalised, optimised for many small reads/writes ➔ Relational Model.
  • Data warehouse ➔ supports decisions: historical, integrated across sources, pre-designed, holding precomputed values at a chosen granularity, optimised for retrieving and summarising very large record sets.
  • Multidimensional view ➔ the analyst sees a cube with multiple dimensions; the cube is logical — the underlying physical storage is still relational, laid out as a Star Schema.
  • ETL ➔ the whole process of extracting data from the operational databases and transforming it into the data warehouse = Extraction, Transformation, Load.
  • OLAP ➔ On-Line Analytical Processing; the tool that retrieves large numbers of records from very large data sets and summarises them “on the fly” — the cube’s query interface.
  • Business Intelligence ➔ the insight layer on top of OLAP: reports, charts, dashboards, interactive data navigation, and downstream data analytics.

⚖️ Operational Database vs Data Warehouse

AspectOperational databaseData warehouse
Purposerun the business (transactions)decision support / analysis
Data scopecurrent, detailedhistorical, integrated from many sources
ModellingER + Normalisationdimensional ➔ Star Schema
Values storedraw, computed on demandprecomputed at a fixed granularity
Design timingevolves with the applicationmust be pre-designed
Query shapemany small reads/writesfew queries scanning/summarising huge sets
Access toolSQL application codeOLAP ➔ BI reports & dashboards

Shared substrate: both are relational technology — the warehouse is not a different DBMS, it is a different schema discipline plus precomputation.

🔄 The Delivery Chain

  • Granularity is the irreversible choice ➔ it fixes the finest level a fact can be reported at; anything finer than the stored grain is unrecoverable without reloading.
  • Precomputation is the payoff ➔ summarisation done at load time is what makes “on the fly” OLAP response possible over very large data sets.

⚠️ Common Mistakes

  • 💡 Calling the warehouse “a big database” ➔ the distinguishing claims are pre-designed, precomputed, granularity-fixed, multidimensional — a bigger normalised schema is still operational.
  • 💡 Treating the cube as the storage format ➔ the cube is the analyst’s view; the physical schema is relational tables in a star layout.

🧠 Active Recall