Theory · Page 7 of 34 · Modelling

7. Inmon's enterprise warehouse and Data Vault 2.0

Bill Inmon builds one integrated, normalised enterprise warehouse first and feeds departmental marts from it. Data Vault 2.0 keeps that integrated core but splits it into hubs, links and satellites, so new sources and history are added without changing what is there.

Inmon's factory, then hubs, links and satellites
Playback speed

The clip first draws Inmon's corporate information factory: Harbour Mutual's source systems feed a staging area, the staging area feeds one normalised enterprise warehouse, and the warehouse feeds a data mart per department. Then it builds chapter 7's Data Vault: the hubs with their business keys, the links between them, and the satellites with the descriptive attributes and their history. Last, Kestrel's claims arrive as a new source: one new satellite is added and nothing that exists changes.

The intuition: integrate once, then serve many

Harbour Mutual's finance, claims and actuarial teams each built their own reporting database. Each loads customers from the CRM in its own way, so each has a different number of customers. Inmon's answer is to integrate once: one central warehouse where customers, policies and claims are cleaned, keyed and joined the same way for everyone, and departmental data marts fed from that one truth.

The central warehouse is normalised (page 5), so every fact is held once. That makes it right, but slow to change: adding Kestrel's claims means reworking tables, keys and loading jobs that the whole company depends on.

Data Vault keeps the idea of one integrated core but builds it from three kinds of table that never need reworking. The things the business identifies (a customer, a policy, a claim) each get a hub holding only their business key. The relationships between them get links. Everything descriptive, and all of its history, goes into satellites hanging off the hubs and links. When Kestrel arrives, its claims go into a new satellite on the existing claim hub; nothing already built changes.

Remember Inmon integrates everything once in a normalised core. Data Vault makes that core additive: hubs for keys, links for relationships, satellites for descriptions and history.

The theory: the corporate information factory and Data Vault 2.0

Bill Inmon, often called the father of the data warehouse, defined it in 1992 as a collection of data that is subject-oriented (organised around the business's subjects, such as customer and claim, not around applications), integrated (one set of keys, codes and units), time-variant (every row belongs to a point or period in time) and non-volatile (loaded and read, not updated in place), built to support management's decisions.

His corporate information factory places that warehouse in a chain: source systems, a staging area, the enterprise data warehouse in third normal form, and data marts for each department, often dimensional, fed only from the warehouse. This is the top-down approach. Kimball's is bottom-up: build dimensional marts one business process at a time, integrated through conformed dimensions (page 6). Inmon's core is easier to keep consistent; Kimball's delivers value sooner. Most real warehouses combine them.

Data Vault was designed by Dan Linstedt in the 1990s and published from 2000; Data Vault 2.0 (2013, written up with Michael Olschimke in 2015) added hash keys, rules for loading in parallel, and a method around the model. It is built from three table types.

Hubs, links and satellites A hub holds the unique list of one business key (a policy number), with a hash key computed from it, the date it was first loaded and the source it came from. A link holds a unique relationship or transaction between two or more hubs (this claim is against that policy), with its own hash key from the hubs' business keys; links are always many-to-many, so a change in cardinality never changes the model. A satellite holds the descriptive attributes of one hub or link (a claim's loss date, cause and reserve), keyed by its parent's hash key and the load date, so every change adds a row and the whole history is kept.

A hash key is a fixed-length digest of the business key, computed the same way by every loader: Harbour Mutual's vault trims the key, makes it upper case, joins the parts of a composite key with "||" and takes its MD5. Because the key can be computed from the source row alone, hubs, links and satellites can be loaded at the same time, with no lookup of a sequence number. PostgreSQL computes the same keys as the engine:

Data Vault hash keys for three of Harbour Mutual's policies, computed in PostgreSQL (run on PostgreSQL 18.3 in CI)
SELECT policy_number, MD5(UPPER(TRIM(policy_number))) AS policy_hk
FROM policies
ORDER BY policy_id
LIMIT 3

The loading rules make the vault insert-only and repeatable:

  • A hub load inserts the business keys it has not seen before, and nothing else.
  • A link load inserts the combinations of hub keys it has not seen before.
  • A satellite load compares a hash of the incoming descriptive columns (the hash diff) with the latest row for the same parent, and inserts a new row only when it differs.
  • Every row records its load date and record source; nothing is updated or deleted, so any earlier state can be rebuilt.
  • Hubs, links and satellites have no dependencies on each other during a load, because the hash keys are computed, not looked up.
  • The raw vault stores the data as the sources gave it, without business rules; rules go in a business vault of derived tables, and users read information marts, usually star schemas, built on top.

Querying a vault takes many joins, so Data Vault 2.0 adds helper tables: a point-in-time (PIT) table lists, for each hub key and date, which satellite row was current; a bridge table pre-joins hubs and links along a common path. Both are rebuilt from the vault and can be thrown away.

Why it matters

A merger is the case Data Vault was designed for. Kestrel's systems arrive with their own keys, formats and histories. In a normalised warehouse, each new source reworks tables; in a vault, Kestrel's records add rows to existing hubs where the business keys match, and new satellites carry Kestrel's descriptions beside Harbour Mutual's, each with its source recorded.

The insert-only, sourced design also answers the auditor's question "what did we know, and when?": any past state of the warehouse can be rebuilt from the load dates.

Where it goes wrong

  • Users querying the raw vault. A vault is a store for integration and history, not a reporting model; serve users through marts.
  • Business rules in the raw vault. Cleaning data on the way in destroys the record of what the source said.
  • Hubs on the wrong keys. A hub keyed on a source system's surrogate id instead of a real business key integrates nothing.
  • A vault for a small estate. Three stable sources and one team rarely need hubs, links and satellites; a star or a normalised core is simpler.
  • Inmon without delivery. A central warehouse that takes years before its first mart loses its sponsors first.

Check yourself

Choose an answer to each question, then press Check.

1. In Data Vault 2.0, where do a claim's cause and reserve go?
2. Why do Data Vault 2.0's hash keys allow hubs, links and satellites to load at the same time?
3. Which of these is one of Inmon's four properties of a data warehouse?
Answer every question first.

Sources

The works this page draws on, summarised in its own words rather than quoted. Read them for the full argument.

  • W. H. Inmon, Building the Data Warehouse (Wiley, 1992; 4th edition 2005)The definition of a data warehouse by its four properties, and the normalised enterprise warehouse feeding data marts.
  • W. H. Inmon, C. Imhoff and R. Sousa, Corporate Information Factory, 2nd edition (Wiley, 2001)The chain from sources through staging and the enterprise warehouse to departmental marts.
  • D. Linstedt and M. Olschimke, Building a Scalable Data Warehouse with Data Vault 2.0 (Morgan Kaufmann, 2015)Hubs, links and satellites, hash keys and hash diffs, the loading rules, the raw and business vault, and point-in-time and bridge tables.

Practise it

The chapters that put this theory to work on Harbour Mutual and Kestrel:

The tools to try it in:

  • Model studio · Draw conceptual, logical and physical models, generate DDL for PostgreSQL, Spark SQL and T-SQL, and run it on Harbour Mutual's data in your browser.

Terms taught here: Data warehouseData Vault

An unhandled error has occurred. Reload 🗙

Reconnecting…

Your connection to the Cloud Data Architecture Lab dropped, probably a Wi-Fi blip. Hold on while it reconnects.

The connection could not be restored. The page will reload in a few seconds.