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
- A hub stores only the business key (customer_id) plus a hash key, load time and source. One row per customer, ever.
- Another hub for orders. Hubs are the stable backbone: business keys rarely change meaning.
- A link records that a customer and an order are related. Many-to-many by design, so relationship changes never force a redesign.
- 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.
- 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_tsandrecord_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
- Building a Scalable Data Warehouse with Data Vault 2.0: Dan Linstedt and Michael Olschimke
- Modeling the Agile Data Warehouse with Data Vault: Hans Hultgren
Articles and docs
- Databricks: What is a data vault?
- AutomateDV documentation
- Practical Introduction to Data Vault Modeling