$ load hub_customer link_customer_order sat_customer_crm

Data Vault

Data Vault is a modeling method for the integration layer of a data warehouse, created by Dan Linstedt. It splits every business concept into three kinds of tables: hubs hold business keys, links hold relationships between keys, and satellites hold descriptive attributes with full history. Tables are insert-only, so the vault becomes an auditable record of everything every source system ever said. The current version is Data Vault 2.0 (with a 2.1 refresh), which adds hash keys, loading standards and a methodology around the model.

Building a vault, one table type at a time

$ dv model --entities customer,order
Hubs, links and satellites
HUB hub_customer hk_customer · customer_id load_ts · record_source HUB hub_order hk_order · order_no load_ts · record_source LINK link_customer_order hk_link · hk_customer hk_order · load_ts SAT · source CRM sat_customer_crm name · city · email load_ts · hashdiff SAT · source shop sat_order_shop status · amount load_ts · hashdiff NEW SAT · loyalty app sat_customer_loyalty tier · points load_ts · hashdiff added, nothing else changed
  1. A hub stores only the business key (customer_id) plus a hash key, load time and source. One row per customer, ever.
  2. Another hub for orders. Hubs are the stable backbone: business keys rarely change meaning.
  3. A link records that a customer and an order are related. Many-to-many by design, so relationship changes never force a redesign.
  4. Satellites hang off hubs and links and hold descriptive attributes, one satellite per source. A new row is inserted only when the hashdiff of the attributes changes.
  5. A new source (a loyalty app) arrives. You add a new satellite. Existing tables and loads are untouched.

Key ideas

  • Business keys first. Hubs are keyed on what the business uses to identify things (customer number, order number), not on source system row IDs.
  • Hash keys. Data Vault 2.0 computes keys as a hash of the business key (for example MD5(UPPER(TRIM(customer_id)))), so hubs, links and satellites can load in parallel without lookups.
  • Insert-only. Nothing is updated or deleted. Every row carries load_ts and record_source, so you can reconstruct what was known at any point in time.
  • Raw vault vs business vault. The raw vault stores source data as-is. Business rules (deduplication, currency conversion) live in a separate business vault layer.
  • Information marts on top. Users don’t query the vault directly. You build star schemas or views over it for reporting.

Data Vault vs dimensional vs 3NF

3NF (Inmon) Dimensional (Kimball) Data Vault
Main goal Integrated, non-redundant enterprise model Fast, easy analytics Auditable, adaptable integration
Adding a source Often remodel tables Often rework dimensions Add hubs/links/satellites
History Must be designed in SCD types per dimension Built in (insert-only satellites)
Query complexity Medium Low High: many joins
Who queries it Engineers Analysts and BI tools Engineers; analysts use marts

When to use it

Data Vault pays off when you integrate many source systems that change often, need a full audit trail (finance, insurance, regulated industries), and have a team large enough to benefit from strict, automatable patterns. Tools such as dbt packages (AutomateDV, datavault4dbt), WhereScape and VaultSpeed generate most of the loading code.

It is overkill for a startup with three sources and a handful of dashboards: a staging layer plus well-built star schemas is simpler and faster to deliver.

Common mistakes

  • Using source surrogate IDs as business keys, so the same customer from two systems never meets in one hub.
  • One giant satellite per hub that mixes sources and change rates. Split satellites by source and by how often attributes change.
  • Letting analysts query the raw vault directly. Build marts.
  • Hand-writing hundreds of near-identical load jobs instead of generating them from metadata.

Learning Resources

Books

Articles and docs

Videos