# Data vault: hubs, links and satellites in SQL, and when to use it

> A data vault keeps business keys in hubs, relationships in links and history in satellites, loaded insert-only. Tested SQL, PIT tables, dbt and privacy.

- URL: https://computese.com/data-vault/
- Author: Duong Quan Nguyen, CEO, Computese
- Published: 2026-11-24
- Updated: 2026-11-24
- Topics: Data

## In short
- A data vault splits a warehouse into hubs (business keys), links (relationships) and satellites (attributes and their history). Loads insert rows and never update them, so each change keeps its load date and record source.
- A hash diff compared with the latest satellite row detects change. The load date records when a row arrived, so a late row needs a separate applied date, or it looks like the newest fact.
- Choose one hash algorithm and one normalization rule before the first load, and test composite keys: with a plain delimiter, A||B plus C and A plus B||C hash alike. Changing the algorithm later means recomputing every key.
- The raw vault holds source data with only hard rules, the business vault adds soft rules, and BI reads information marts built on top, often star schemas. A PIT table turns as-of lookups into equi-joins.
- Erasure requests reach an insert-only store. Keep personal attributes in their own satellite, delete those rows, filter re-delivered records with an erasure list, and remember that a hashed identifier can still be personal data.

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](https://shop.elsevier.com/books/building-a-scalable-data-warehouse-with-data-vault-20/linstedt/978-0-12-802510-9) 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](https://datavaultalliance.com/engineering/data-vault-2-0-an-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](https://datavaultalliance.com/dv2-1-modeling-and-delivery/), 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](https://github.com/Datavault-UK/automate-dv/releases/tag/v0.11.5) 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.

![Two hub boxes with key symbols are joined by an orange connector bar. Four satellite cards point into the left hub and six into the right, half above and half below.](https://computese.com/images/blog/data-vault/hubs-links-satellites.86c4fd4b78-1536.webp)

*A link relates two keys; satellites hold the facts about each side.*

```sql
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](https://computese.com/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](https://automate-dv.readthedocs.io/en/latest/best_practises/loading/) calls the hash diff "a kind of checksum" that detects changes "without comparing every column individually".

```sql
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.

![A hub box on the left connects to a rising staircase of five satellite cards above a timeline; the oldest card has a faded dashed outline and the newest, on top, is orange.](https://computese.com/images/blog/data-vault/satellite-history.287777afaa-1536.webp)

*A change adds a card, so the stack is the history.*

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) | Email                  |
| ------ | ------------------------- | ---------------------- |
| 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:

```sql
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](https://datavaultalliance.com/engineering/understanding-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)".

![Two stacked timelines show when four events happened and when they arrived. One card, a dashed outline first on the upper line, arrives last on the lower line, where it is orange.](https://computese.com/images/blog/data-vault/late-row.209e6a67d1-1536.webp)

*The load date says when a row arrived; the applied date says where it belongs in time.*

## 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](https://automate-dv.readthedocs.io/en/latest/best_practises/hashing/) 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](https://automate-dv.readthedocs.io/en/latest/best_practises/hashing/) 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](https://www.rfc-editor.org/rfc/rfc6151.html): not acceptable where collision resistance is required                                          |
| SHA-1     | 20    | 3.4e-31 / 3.4e-25                | Recommended by the Alliance, per AutomateDV. [NIST](https://www.nist.gov/news-events/news/2022/12/nist-retires-sha-1-cryptographic-algorithm): 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:

```sql
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](https://www.datavault4dbt.com/documentation/general-usage-notes/global-variables/) 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.

![Two identical rows of five grey blocks have a divider in different places, yet arrows from both feed one funnel that outputs a single orange key tag.](https://computese.com/images/blog/data-vault/delimiter-collision.cd8eec42b7-1536.webp)

*A delimiter that appears in the data lets two keys share one hash.*

## Where do the raw vault, business vault and marts fit?

[Building a Snowflake Data Vault](https://datavaultalliance.com/engineering/building-a-real-time-data-vault-in-snowflake/), 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](https://docs.getdbt.com/blog/data-vault-with-dbt-cloud) 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](https://computese.com/star-schema/) is a separate job, and shared metric definitions sit above it in a [semantic layer](https://computese.com/semantic-layer/). On a lakehouse, [Databricks](https://www.databricks.com/blog/what-is-data-vault) says "Data Vault fits in the Silver layer"; see [medallion architecture](https://computese.com/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](https://automate-dv.readthedocs.io/en/latest/tutorial/tut_point_in_time/) 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:

```sql
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](https://automate-dv.readthedocs.io/en/latest/tutorial/tut_bridges/), 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](https://automate-dv.readthedocs.io/en/latest/macros/) marks `pit()` and `bridge()` as "Deprecated since v0.11.0" and calls them "not currently fit-for-purpose". The [datavault4dbt README](https://github.com/ScalefreeCOM/datavault4dbt) lists PIT tables among its macros. Plain SQL like the above, driven by an as-of-date table, does not need the `pit()` macro.

![Two rows of satellite cards, one per satellite, are cut by one dated vertical line. The card it crosses in each row has a bold outline, and arrows carry both into an orange grid on the right.](https://computese.com/images/blog/data-vault/pit-snapshot.7f6be45260-1536.webp)

*A PIT table records which satellite row was in force on each date.*

## 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](https://docs.getdbt.com/blog/data-vault-with-dbt-cloud), 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](https://github.com/Datavault-UK/automate-dv/releases/tag/v0.11.5) (February 5, 2026) and datavault4dbt [v2.1.1](https://github.com/ScalefreeCOM/datavault4dbt/releases/tag/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](https://automate-dv.readthedocs.io/en/latest/tutorial/tut_hubs/) (the lab did not run it):

```sql
{{ 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](https://www.edpb.europa.eu/sme/be-compliant/respect-individuals-rights_en) 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.

```sql
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)
```

![A source cylinder sends a person card along an arrow toward a gate whose orange arm blocks the path. A clipboard lists keys to refuse; beyond, a satellite pile has one empty slot beside an untouched hub.](https://computese.com/images/blog/data-vault/erasure-gate.f8e12461a7-1536.webp)

*Deleting history is not enough if the source can send the person again.*

> [!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](https://commission.europa.eu/law/law-topic/data-protection/data-protection-explained_en), 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](https://computese.com/work/banking-regulatory-data/) reproduced a filed figure from an [Apache Iceberg](https://computese.com/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](https://www.kimballgroup.com/2004/03/differences-of-opinion/), and [Bill Inmon created](https://www.wiley.com/en-us/Corporate+Information+Factory,+2nd+Edition-p-9780471399612) the Corporate Information Factory. The [star schema guide](https://computese.com/star-schema/) 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](https://datavaultalliance.com/engineering/source-system-datavault-and-business-keys/) | 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.

1. **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.
2. **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.
3. **Fix the hashing rules once.** Algorithm, trimming and case, delimiter, NULL placeholder. Test `A||B` plus `C` against `A` plus `B||C`.
4. **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.
5. **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](https://computese.com/building-data-analytics-software/) for the application side.
6. **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](https://computese.com/services/data-platform/) 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.

## Key terms
- **Hub**: A table with one row per business key of one entity, such as a customer number, plus a hash key, a load date and a record source. It holds no descriptive attributes.
- **Link**: A table that records a relationship between business keys, with one row per distinct combination of the parent hash keys, such as one order placed by one customer.
- **Satellite**: A table of descriptive attributes for one hub or link. Each change adds a row keyed by the parent's hash key and a load date, so the table keeps the full history.
- **Hash key**: A fixed-length digest of a business key, or of several keys joined together, used as the primary key of a hub or link so that a child table can compute its parent's key without a lookup.
- **Hash diff**: A digest of a satellite row's descriptive columns. The loader compares it with the latest row for the same key and inserts a new row only when the two differ.
- **Load date**: The date and time a row was inserted into the target system. The Data Vault Alliance says its meaning must not change; late data gets a separate applied date.
- **Applied date**: A date that places a row on the business timeline, such as when a value changed in the source, kept apart from the load date so late-arriving rows can be ordered correctly.
- **Point-in-time (PIT) table**: A query-assistance table in the business vault. For each hub key and as-of date it stores the hash key and load date of the satellite row in force, so marts can join on equality.
- **Raw vault and business vault**: The raw vault stores every record received with only hard rules applied. The business vault is a sparse addition that holds soft business rules, such as calculated satellites or mastered records.
- **Information mart**: The consumer-facing layer built on the vault. Dimensional models and flat tables are common forms, and the layer can be a set of views, so BI tools need not query the vault tables directly.

## Common questions

### What is a data vault in simple terms?

A data vault is a way to model a data warehouse so that history is kept, not overwritten. Business keys live in hubs, relationships in links and descriptive attributes in satellites, and rows are only inserted. Each row carries its load date and record source, so a number can be traced to the delivery that produced it.

### What does Data Vault 2.0 add to the original data vault?

The Data Vault Alliance says 2.0 is not just a data model: it also covers the architecture and the methodology, and the standard borrows hashing algorithms and set logic alongside Agile and automation. As of October 2026 the Alliance teaches DV2.1, whose Modeling and Delivery course lists hash keys, sequences, hash differences and collision management.

### Is a data vault better than a star schema?

They do different jobs. A data vault integrates many sources and keeps each change it receives, while a star schema serves queries. The dbt Developer Blog says a data vault is not intended as a final presentation layer, so marts, often star schemas, are built on top of it.

### Should data vault hash keys use MD5, SHA-1 or SHA-256?

AutomateDV defaults to MD5, offers SHA-1 and SHA-256, and says the Data Vault Alliance recommends SHA-1. NIST says SHA-1 should be phased out by December 31, 2030, and RFC 6151 says MD5 is no longer acceptable where collision resistance is required, such as digital signatures. Whichever you pick, keep it: changing the algorithm after loading means a full refresh in AutomateDV.

### How do you delete personal data from a data vault?

Keep personal attributes in their own satellite, so one delete removes them without touching hubs, links or other satellites. Then keep an erasure list and filter the stage against it, or the next delivery from the source reloads the person. A hash of a personal identifier can still be personal data, so ask a privacy specialist about the keys and the list.

### Do you need a point-in-time table?

AutomateDV recommends one when a query references at least two satellites, especially when they update at different rates. The PIT stores each satellite's hash key and load date for every as-of date, so a mart joins on equality. Check how your tool's PIT treats late data, and note that AutomateDV has deprecated its own pit() macro since v0.11.0.

### When should you not use a data vault?

The dbt Developer Blog authors list simple and constant systems, quick one-off solutions and layers needed for direct reporting as poor fits. They say that if you have not experienced a project with 50+ sources, 25+ developers on one platform, or 5+ years of data across two or more generations of source systems, "maybe Kimball modelling is better for you". In this guide's view, a star schema is usually enough for a few stable sources and no audit need.

## Sources
1. [Building a Scalable Data Warehouse with Data Vault 2.0](https://shop.elsevier.com/books/building-a-scalable-data-warehouse-with-data-vault-20/linstedt/978-0-12-802510-9), Elsevier
2. [Your Data Vault 2.0 Introduction](https://datavaultalliance.com/engineering/data-vault-2-0-an-introduction/), Data Vault Alliance
3. [DV2.1 Modeling and Delivery](https://datavaultalliance.com/dv2-1-modeling-and-delivery/), Data Vault Alliance
4. [Release Version 0.11.5](https://github.com/Datavault-UK/automate-dv/releases/tag/v0.11.5), AutomateDV on GitHub
5. [Loading](https://automate-dv.readthedocs.io/en/latest/best_practises/loading/), AutomateDV documentation
6. [Understanding Late Arriving Data](https://datavaultalliance.com/engineering/understanding-late-arriving-data/), Data Vault Alliance
7. [Hashing](https://automate-dv.readthedocs.io/en/latest/best_practises/hashing/), AutomateDV documentation
8. [Global Variables](https://www.datavault4dbt.com/documentation/general-usage-notes/global-variables/), datavault4dbt documentation
9. [NIST Retires SHA-1 Cryptographic Algorithm](https://www.nist.gov/news-events/news/2022/12/nist-retires-sha-1-cryptographic-algorithm), NIST
10. [RFC 6151: Updated Security Considerations for the MD5 Message-Digest and the HMAC-MD5 Algorithms](https://www.rfc-editor.org/rfc/rfc6151.html), IETF
11. [Building a Snowflake Data Vault](https://datavaultalliance.com/engineering/building-a-real-time-data-vault-in-snowflake/), Data Vault Alliance
12. [Data Vault 2.0 with dbt Cloud](https://docs.getdbt.com/blog/data-vault-with-dbt-cloud), dbt Developer Blog
13. [What is a Data Vault?](https://www.databricks.com/blog/what-is-data-vault), Databricks
14. [Point In Time (PIT) tables](https://automate-dv.readthedocs.io/en/latest/tutorial/tut_point_in_time/), AutomateDV documentation
15. [Bridge Tables](https://automate-dv.readthedocs.io/en/latest/tutorial/tut_bridges/), AutomateDV documentation
16. [Macros](https://automate-dv.readthedocs.io/en/latest/macros/), AutomateDV documentation
17. [Hubs](https://automate-dv.readthedocs.io/en/latest/tutorial/tut_hubs/), AutomateDV documentation
18. [datavault4dbt](https://github.com/ScalefreeCOM/datavault4dbt), Scalefree on GitHub
19. [Release v2.1.1](https://github.com/ScalefreeCOM/datavault4dbt/releases/tag/v2.1.1), datavault4dbt on GitHub
20. [Source System #datavault and Business Keys](https://datavaultalliance.com/engineering/source-system-datavault-and-business-keys/), Data Vault Alliance
21. [Differences of Opinion](https://www.kimballgroup.com/2004/03/differences-of-opinion/), Kimball Group (Margy Ross, 2004)
22. [Corporate Information Factory, 2nd Edition](https://www.wiley.com/en-us/Corporate+Information+Factory,+2nd+Edition-p-9780471399612), Wiley
23. [Respect individuals' rights](https://www.edpb.europa.eu/sme/be-compliant/respect-individuals-rights_en), European Data Protection Board
24. [Data protection explained](https://commission.europa.eu/law/law-topic/data-protection/data-protection-explained_en), European Commission
