A data vault is a warehouse modeling method, invented by Dan Linstedt, that splits data into hubs (business keys), links (relationships) and satellites (descriptive attributes and their history). Loads only insert rows, so every change that arrives stays traceable to its source and load time. It pays off with many changing sources and audit needs.
What is a data vault, and where did it come from?
Elsevier's page for the book by Dan Linstedt and Michael Olschimke (2015) says Linstedt invented the data vault at the U.S. Department of Defense. The Data Vault Alliance's introduction calls Data Vault 2.0 "not just a data model": it "encompasses the architecture and methodology" too, and borrows set logic and hashing algorithms alongside Agile and automation.
As of October 2026 the Alliance teaches DV2.1, which its course page calls "a governed System of Information Management". No public list of changes from 2.0 to 2.1 turned up in the Alliance material read for this guide, and AutomateDV's February 2026 release notes still describe the new nh_link() macro name as "modern Data Vault 2.0 naming". This post describes the 2.0 pattern; check the 2.1 course material for differences.
What do hubs, links and satellites hold?
In the Alliance's introduction each table has one job: keys in hubs, attributes in satellites, relationships in links. This post's example is a shop with customers and orders. Every row is invented. The SQL ran on PostgreSQL 18.6 and the outputs are real.

CREATE TABLE hub_customer (
customer_hk bytea PRIMARY KEY,
customer_id text NOT NULL,
load_dts timestamptz NOT NULL,
record_source text NOT NULL
);
CREATE TABLE link_order_customer (
order_customer_hk bytea PRIMARY KEY,
order_hk bytea NOT NULL,
customer_hk bytea NOT NULL,
load_dts timestamptz NOT NULL,
record_source text NOT NULL
);
CREATE TABLE sat_customer_profile (
customer_hk bytea NOT NULL,
load_dts timestamptz NOT NULL,
applied_dts timestamptz NOT NULL,
hash_diff bytea NOT NULL,
record_source text NOT NULL,
full_name text,
email text,
PRIMARY KEY (customer_hk, load_dts)
);
hub_order mirrors hub_customer, with order_hk and order_number. Hash keys are computed from the business keys, which stay in the clear. load_dts is the insert time, record_source names the sending system, applied_dts is when the value became true in the source, and hash_diff fingerprints the payload. The DDL declares no foreign keys; the next section explains why.
How do you load a data vault without updating rows?
Each delivery lands in a landing table (change data capture can feed it). A stage view adds the hash keys, a hash diff and the record source. Hubs and links insert keys that are not there yet, and the satellite inserts a row only when the hash diff differs from the latest row for that key. AutomateDV's loading guide calls the hash diff "a kind of checksum" that detects changes "without comparing every column individually".
CREATE TEMP TABLE raw_customer (customer_id text, full_name text, email text,
changed_at timestamptz, load_dts timestamptz);
CREATE TEMP VIEW stg_customer AS
SELECT customer_id, full_name, email, changed_at, load_dts, 'crm' AS record_source,
decode(md5(upper(btrim(customer_id))), 'hex') AS customer_hk,
decode(md5(concat_ws('||', coalesce(btrim(full_name), '^^'),
coalesce(btrim(email), '^^'))), 'hex') AS hash_diff
FROM raw_customer;
INSERT INTO hub_customer
SELECT s.customer_hk, s.customer_id, s.load_dts, s.record_source
FROM stg_customer s
WHERE NOT EXISTS (SELECT 1 FROM hub_customer h WHERE h.customer_hk = s.customer_hk);
INSERT INTO sat_customer_profile
SELECT s.customer_hk, s.load_dts, s.changed_at, s.hash_diff, s.record_source, s.full_name, s.email
FROM stg_customer s
LEFT JOIN LATERAL (SELECT t.hash_diff
FROM sat_customer_profile t
WHERE t.customer_hk = s.customer_hk
ORDER BY t.load_dts DESC
LIMIT 1) cur ON true
WHERE cur.hash_diff IS DISTINCT FROM s.hash_diff;
The order hub and link load the same way from a stage view over the orders. Four nightly batches went through these loads, one of them twice:
| Night and delivery | Rows added to customer hub, order hub, link, satellite |
|---|---|
| Oct 5: 2 customers, 3 orders | 2, 3, 3, 2 |
| Oct 5 again: the same batch | 0, 0, 0, 0 |
| Oct 6: C-1042 has a new email; order 9004 is new | 0, 1, 1, 1 |
| Oct 7: C-1042's first email is back; C-2077 has a new email | 0, 0, 0, 2 |
| Oct 8: a late row for C-2077 | 0, 0, 0, 1 |
On October 7 the first email came back and still earned a new row, because the load compares only with the latest row; comparing with an older row would lose the revert.

Load order did not matter either. Running the four table loads in reverse produced identical tables, and EXCEPT in both directions returned no rows, because each table computes its own keys and none reads another. A foreign key from satellite to hub would make an early satellite insert fail with violates foreign key constraint, so this model omits foreign keys and runs an orphan check instead: a NOT EXISTS query for satellite and link rows whose parent key is missing from the hub. It returned 0 after the final load.
A batch with the same new key twice fails on the primary key, so de-duplicate the stage with DISTINCT ON. Two loaders inserting the same new key at once can both pass NOT EXISTS; in the lab the second failed until the hub insert had ON CONFLICT DO NOTHING, then added 0 rows.
Tip
Give every table in a batch the same load date. AutomateDV's loading guide says tables loaded in parallel should share one value, and that using the time the model runs "will cause problems for audit". It suggests the ingestion tool's own column or dbt's run_started_at.
How do you handle late-arriving data?
On October 8 a source delivered an update for C-2077 that was made on October 4, before the October 6 change that loaded on October 7. The satellite now holds three rows for C-2077:
| Loaded | Applied (when it changed) | |
|---|---|---|
| Oct 5 | Oct 3, 09:05 | ben@example.com |
| Oct 7 | Oct 6, 21:15 | ben.okafor@example.com |
| Oct 8 | Oct 4, 11:30 | b.okafor@example.org |
The newest row by load date is not the current value by business time. This query picks the latest row both ways:
WITH by_load AS (
SELECT DISTINCT ON (customer_hk) customer_hk, email
FROM sat_customer_profile ORDER BY customer_hk, load_dts DESC),
by_applied AS (
SELECT DISTINCT ON (customer_hk) customer_hk, email
FROM sat_customer_profile ORDER BY customer_hk, applied_dts DESC)
SELECT h.customer_id, l.email AS latest_loaded, a.email AS latest_applied
FROM hub_customer h
JOIN by_load l USING (customer_hk)
JOIN by_applied a USING (customer_hk)
ORDER BY 1;
For C-2077 it returned b.okafor@example.org by load date and ben.okafor@example.com by applied date. C-1042 agreed both ways.
The Alliance's article on late-arriving data says the load date is the "date and time of insert of that piece of data to the target system", and that changing its meaning is "neither wise, nor acceptable". The fix is to "add another temporal based field", the applied date, and to use it "in your out-bound queries (when loading PITS and BRIDGES or views downstream)".

Which hash key should you use, and can it collide?
A hash key is a digest of the business key, computed in the stage. Because every table can compute its parent's key itself, the loads above needed no lookups. A sequence number is the alternative, and the DV2.1 course page lists both. A sequence is assigned when a key first arrives, so a satellite or link load must look it up in the hub first.
Normalize before you hash. upper(btrim(...)) turned 'C-1042', ' c-1042 ' and 'c-1042' into one hash in the lab. AutomateDV's hashing page casts to text, trims, upper-cases and treats an empty string as NULL. The lab's hash diff keeps case, so Ana@example.com and ana@example.com count as a change: decide per column. Any rule is permanent, because changing it changes the hash of every value it affects.
Pick the algorithm once. AutomateDV defaults to MD5 and warns that with more than "a few billion rows" there is "a chance of a clash". The odds below are this guide's arithmetic, using the birthday approximation n(n-1) / 2^(bits+1) for keys nobody crafted.
| Algorithm | Bytes | Any collision at 1e9 / 1e12 keys | Status |
|---|---|---|---|
| MD5 | 16 | 1.5e-21 / 1.5e-15 | AutomateDV's default. RFC 6151: not acceptable where collision resistance is required |
| SHA-1 | 20 | 3.4e-31 / 3.4e-25 | Recommended by the Alliance, per AutomateDV. NIST: phase out by December 31, 2030 |
| SHA-256 | 32 | 4.3e-60 / 4.3e-54 | AutomateDV's sha option |
In this guide's view, accidental collisions are not the realistic risk; deliberately crafted key values and bugs in what you hash are. RFC 6151 reports practical collision attacks on MD5, yet also says it is "not urgent to stop using MD5 in other ways, such as HMAC-MD5". A hash key is not a signature, so MD5 is defensible for keys from your own systems; SHA-256 costs only 16 more bytes and avoids the argument. In PostgreSQL 18, sha256(convert_to(upper(btrim(customer_id)), 'UTF8')) returns bytea directly, while SHA-1 needs the pgcrypto extension (digest('abc', 'sha1') failed until CREATE EXTENSION pgcrypto). Whatever you choose, "Stick with your chosen algorithm unless you can afford to full-refresh."
Guard composite keys against delimiters. A link key hashes several business keys joined by a delimiter. If the delimiter can occur inside a value, different keys collide before the algorithm matters:
SELECT md5(concat_ws('||', 'A||B', 'C')) AS key_1,
md5(concat_ws('||', 'A', 'B||C')) AS key_2,
md5(concat_ws('||', 'A||B', 'C')) = md5(concat_ws('||', 'A', 'B||C')) AS same_hash;
Both keys came out as 6610259a5efa4f8c32385179d4de0b68, because both strings are A||B||C. AutomateDV joins columns with ||, "a string which is unlikely to be contained in the columns", which is an assumption about your data. datavault4dbt wraps each value in a quote character and substitutes a token for any delimiter, quote or NULL placeholder found inside a value, so that "real values can never collide with the structural delimiter". Quoting each value made the same two keys hash differently in the lab.

Where do the raw vault, business vault and marts fit?
Building a Snowflake Data Vault, an article on the Alliance's site whose "About the Authors" section names two Snowflake staff, splits the data lifecycle into five layers. The last three are the vault and what is built on it. The raw vault is "a Data Vault model with no soft business rules or transformations applied (only hard rules are allowed) loading all records received from a source". The business vault is "not a copy of the raw data vault but rather a sparse addition", perhaps with calculated satellites, mastered records or commonly used aggregations, and optionally PIT and bridge tables. Information delivery is a layer of consumer-oriented models that could be a set of views.
Point BI at the marts, not the vault. The dbt Developer Blog guide says that, given a modular structure that "requires many joins", a data vault "is not intended as a final, presentation layer", and the Alliance's introduction says the business-facing side should "look like a star schema". Designing that star schema is a separate job, and shared metric definitions sit above it in a semantic layer. On a lakehouse, Databricks says "Data Vault fits in the Silver layer"; see medallion architecture.
What is a point-in-time table, and when do you need one?
Reading the customer as of October 7 means searching each satellite for its latest row at or before that date. AutomateDV's PIT tutorial defines a PIT as "a query assistant structure, part of the Business Vault": for each date in an as-of-date table it records the relevant row in each satellite, so mart queries can use equi-joins. It recommends one when a query references at least two satellites, "especially when the Satellites have different rates of update".
The lab adds sat_customer_account (the same columns, with tier instead of name and email). C-1042 is silver from October 5 and gold from October 7, and C-2077 is bronze throughout. The PIT and a view over it:
CREATE TABLE as_of_date (as_of_dts timestamptz PRIMARY KEY);
INSERT INTO as_of_date
SELECT generate_series(TIMESTAMPTZ '2026-10-05 12:00+00', TIMESTAMPTZ '2026-10-08 12:00+00', interval '1 day');
CREATE TABLE pit_customer AS
SELECT h.customer_hk, a.as_of_dts,
p.load_dts AS profile_ldts,
t.load_dts AS account_ldts
FROM hub_customer h
CROSS JOIN as_of_date a
LEFT JOIN LATERAL (SELECT s.load_dts FROM sat_customer_profile s
WHERE s.customer_hk = h.customer_hk AND s.load_dts <= a.as_of_dts
ORDER BY s.applied_dts DESC, s.load_dts DESC LIMIT 1) p ON true
LEFT JOIN LATERAL (SELECT s.load_dts FROM sat_customer_account s
WHERE s.customer_hk = h.customer_hk AND s.load_dts <= a.as_of_dts
ORDER BY s.applied_dts DESC, s.load_dts DESC LIMIT 1) t ON true;
CREATE VIEW dim_customer_as_of AS
SELECT p.as_of_dts::date AS as_of, h.customer_id, sp.full_name, sp.email, sa.tier
FROM pit_customer p
JOIN hub_customer h ON h.customer_hk = p.customer_hk
LEFT JOIN sat_customer_profile sp ON sp.customer_hk = p.customer_hk AND sp.load_dts = p.profile_ldts
LEFT JOIN sat_customer_account sa ON sa.customer_hk = p.customer_hk AND sa.load_dts = p.account_ldts;
For C-2077 the PIT pointed at the October 5 account row on every date. Its profile row was the October 5 one on October 5 and 6 and the October 7 one on October 7 and 8, so the view showed ben@example.com and then, from October 7, ben.okafor@example.com.
The view joins each satellite on (customer_hk, load_dts) with plain equality. On October 8 the PIT still points at the October 7 row, so the late row loaded earlier that day does not displace the current email. That is the applied_dts DESC, load_dts DESC ordering at work, and a PIT that took the latest load date would have chosen the late row. In AutomateDV's bridge docs, a bridge does the same for relationships and gives "a timeline for valid sets of Hub and Link relationships".
Check the tooling before you build on it. AutomateDV's macro reference marks pit() and bridge() as "Deprecated since v0.11.0" and calls them "not currently fit-for-purpose". The datavault4dbt README lists PIT tables among its macros. Plain SQL like the above, driven by an as-of-date table, does not need the pit() macro.

How do dbt packages build a data vault?
Two open-source dbt packages generate vault SQL through macros. The dbt Developer Blog's July 2023 guide, by Infinite Lambda and dbt Labs staff, called AutomateDV "the most popular open source Data Vault package for dbt" and datavault4dbt "fairly new". As of October 2026 the latest releases are AutomateDV v0.11.5 (February 5, 2026) and datavault4dbt v2.1.1 (October 1, 2026).
The packages replace repetitive SQL, not decisions such as business keys and hash rules. A hub in AutomateDV is metadata plus one macro call, adapted from its hub tutorial (the lab did not run it):
{{ config(materialized='incremental') }}
{{ automate_dv.hub(src_pk="CUSTOMER_HK", src_nk="CUSTOMER_ID", src_ldts="LOAD_DATETIME",
src_source="RECORD_SOURCE", source_model="v_stg_orders") }}
How do you handle deletes and privacy requests?
An insert-only store keeps every version of every attribute it receives, which collides with erasure requests. The European Data Protection Board's guidance for small businesses says an organization "can only refuse to erase personal data in a limited number of cases", such as compliance with a legal obligation, and that the answer is due within one month, extendable by two further months for a complex request if the person is told within the first month.
The design question is where personal data sits. In the lab, name and email live in sat_customer_profile and the loyalty tier in sat_customer_account. One transactional DELETE took C-1042's profile rows from 3 to 0 and left the hub row, two account rows and two link rows in place, so the as-of view showed NULL for name and email and still showed the tier. Splitting satellites by sensitivity is this guide's recommendation, not the standard's.
The next delivery is the trap: on October 9 the CRM sent C-1042 again and the load put one profile row back. With an erasure list the stage skips the key, and the same delivery added 0 rows.
CREATE TABLE erased_key (customer_hk bytea PRIMARY KEY, erased_at timestamptz NOT NULL DEFAULT now());
INSERT INTO erased_key (customer_hk)
SELECT customer_hk FROM hub_customer WHERE customer_id = 'C-1042';
-- add to the satellite load:
-- AND NOT EXISTS (SELECT 1 FROM erased_key e WHERE e.customer_hk = s.customer_hk)

Warning
This is engineering guidance, not legal advice. The European Commission says personal data that has been de-identified, encrypted or pseudonymized but can still be used to re-identify a person remains personal data, and that anonymization "must be irreversible". A hashed customer ID is not anonymous, AutomateDV's hashing page warns that unsalted MD5 or SHA-256 hashes of personal data in marts may be brute-forced, and erased_key holds the hash of an erased key, so it needs its own retention and access rules. Ask your privacy officer or counsel first.
When is a data vault worth it, and what goes wrong?
The dbt guide says a vault suits "Integration of multiple dynamic source systems", auditability and compliance needs, and cases where "parallel loading is a must". It is "not a go-to choice for" simple and constant systems, quick one-off solutions, or "Data warehouse layers needed for direct reporting". Its test is whether you have experienced a warehouse project with 50+ data sources, 25+ data developers on one platform, or 5+ years of data across two or more generations of source systems. If not, "maybe Kimball modelling is better for you". That is one team's heuristic, not a standard.
Test the audit need first. A bank's regulatory data proof of concept reproduced a filed figure from an Apache Iceberg snapshot. It used snapshots and Type 2 versions, not a vault, and its lesson was that keeping raw records is the easy half.
| Kimball | Inmon (Corporate Information Factory) | Data vault | |
|---|---|---|---|
| Atomic data lives in | Dimensional tables | A normalized warehouse | The raw vault, with its change history |
| Presentation layer | The dimensional model | Data marts | Information marts built on the vault |
The Kimball and Corporate Information Factory columns follow Margy Ross's 2004 comparison, and Bill Inmon created the Corporate Information Factory. The star schema guide compares the approaches at more length.
Where projects go wrong:
| Mistake | What happens | Fix (this guide's advice) |
|---|---|---|
| A source sequence key as the business key | Linstedt says such keys "CHANGE" when data moves between applications, on upgrade, on rollover or on restore | Use a key people recognize that survives a move |
| Mirroring the source schema | One source table becomes 2 to 3 vault tables, which Linstedt says holds no business value | One hub per real key, shared by every source |
| BI tools reading the vault | Many joins and every version of every row | Publish marts or views for BI |
| Satellites that mix rates of change or sensitivity | A fast column repeats the slow ones in each new row, and an erasure reaches too much | Split satellites by source, rate of change and sensitivity |
How do you start without a big bang?
Prove the pattern on one subject area before you commit to the whole warehouse.
- Write down the case. List the sources, how often each changes shape, and the audit question you must answer, such as "what did we report on March 31, and from which rows?" With few stable sources and no such question, stop here.
- Choose business keys with the business. One hub per concept, with keys that survive a migration, and a decision log as the dbt authors recommend.
- Fix the hashing rules once. Algorithm, trimming and case, delimiter, NULL placeholder. Test
A||BplusCagainstAplusB||C. - Load one subject area into the raw vault. Hard rules only, one load date per batch, no new rows when a batch repeats, and an orphan check instead of foreign keys.
- Publish one mart and reconcile it. Build a star schema for one report, compare its numbers with the old report, and add a PIT only when as-of joins get slow or hard to read. See building data analytics software for the application side.
- Rehearse erasure before personal data lands, and review after a quarter: vault tables against source tables, rework and load times, then extend the vault or stop.
Computese's data platform service lists dimensional and data vault modelling. Its first step assesses your sources, reports and pipelines and ends in a target architecture and a first use case worth building.


