Bookmarks

DWH — data warehouse

A database that brings together data from a company’s operational systems to answer analytical questions: reports, statistics, business metrics.

Also: data warehouse system, DW

checked 9 Nov

All terms

Operational systems — an online shop, a CRM, billing — are built for transactions: place an order, take a payment, show a status. Heavy analytics against them gets in the way of their work, and the data is scattered across different databases and formats. So the data is copied into a separate warehouse and brought to a single structure there — reports are built from it without touching the operational systems.

Key properties

William Inmon’s classic definition — “a subject-oriented, integrated, non-volatile and time-variant collection of data in support of management’s decisions”. Four properties follow from it:

PropertyWhat it means
Subject orientationdata is organised around subjects — sales, customers, payments — rather than around applications
Integrationdata from all systems is brought to shared reference data: one list of customers, one currency, one calendar
Time varianceevery record shows the state as of the moment it was loaded; data is kept for years and shows how the metrics changed
Non-volatilityloaded data is not rewritten: each new day brings a new batch, while past values stay in place

Inmon and Kimball

The term was established by Bill Inmon: in 1992 he published the book “Building the Data Warehouse”. His approach is top-down: first a single normalised warehouse, and data marts for the departments are carved out of it. Ralph Kimball published “The Data Warehouse Toolkit” in 1996 and proposed the bottom-up path: build marts around business processes on a dimensional model — fact and dimension tables, most often in a star schema.

How data gets into the warehouse

  1. Extraction from the sources — operational databases, files, external APIs; usually on a schedule
  2. Transformation — cleansing, deduplication, bringing the data to shared reference data and types
  3. Loading — first into the raw staging layer, then into the cleansed and consolidated layer, and from it into marts for reporting; in some ecosystems, such as Databricks, the layers are called bronze, silver and gold

This pipeline is what ETL is. In the classic scheme the transformation happens on the way into the warehouse; with ELT the data is loaded as is first and reassembled by the warehouse itself. Changes to individual rows can be picked up on the fly through CDC, without unloading whole tables.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • data lake

    A data lake keeps raw data in its original form for future tasks; in a warehouse the data is already cleansed and shaped for reports.

  • data mart

    A data mart is a narrow subset of the warehouse for one department or process: sales, finance.

  • OLTPonline transaction processing

    An OLTP system processes transactions as they happen and keeps changing the data; a DWH only accumulates it and hands it over for analysis.

In depth in the references

where the topic is covered in detail