Learn

Data Vault,without the typing.

Hubs, links and satellites are a pattern. Stop writing them one by one.

The idea

Three kinds of table. One warehouse.

Data Vault is a warehouse modeling method Dan Linstedt published in 2002. Data Vault 2.0 followed in 2013 and added hash keys and loading standards. It sits between third normal form and a star schema: detailed, historical, and built to take new sources without remodeling.

Every table is one of three kinds. Hubs hold business keys. Links hold the relationships between them. Satellites hold everything descriptive, with its history, and each satellite belongs to exactly one hub or link.

  • Every change kept, with its source and load time
  • Hubs, links and satellites load in parallel
  • New sources add tables, never remodel old ones
Hubs

One row per business key.

A hub is the list of every customer, product or order the business has ever seen, as its business key and nothing else. No descriptions, no foreign keys. Load it twice and nothing changes: a hub only inserts keys it has not seen before.

The key is cleaned before it lands. BimlFlex trims the value, upper-cases it, swaps a null for NVL, puts the record source in front and hashes the result. So " cust-0042 " and "CUST-0042" from the same system are one customer, with one hash key.

Links

Every relationship is its own table.

A link records that hubs met: this customer at this address, this product on this order line. It carries the hash key of each hub it joins, plus a key of its own. Hubs never point at each other, so a new relationship is a new link and no hub changes.

A link can join more than two hubs. An order line links the order and the product it is for.

Satellites

History, only when it changes.

A satellite holds the descriptive columns of one hub or link, keyed by the parent's key and the load date. Each load hashes those columns into a row hash and compares it with the latest row. Same hash, nothing is written. Different hash, a new row lands with a new effective date.

Split columns into separate satellites by source or by how often they change, and the hub never notices.

Hash keys

One recipe. All four platforms.

Hash keys are what let hubs, links and satellites load in parallel. Every load computes the key from the business key itself, with no lookup and no wait for another table. That only works if every load builds the key exactly the same way.

BimlFlex writes one recipe in each platform's own SQL: the record source, a tilde, the trimmed upper-case key, NVL for nulls, then the hash. SHA1 is the default; MD5, SHA2_256 and SHA2_512 are one setting away.

Query helpers

Query the vault without the date math.

Satellites load on their own schedules, so "what was true on March 31" means date math across every satellite of a hub. A point-in-time (PIT) table does that work once. For each hub key and date range it stores which row of each satellite applies, so queries use plain equi-joins.

BimlFlex keeps PITs as date ranges, not daily snapshots, and ends the current row at 9999-12-31. Where a satellite has no row yet, the PIT points at a zero record, so no customer drops out of a join. A bridge table does the same for a path across hubs and links: their keys, flattened into one row. You create both from the object's menu in BimlFlex.

Raw and business vault

Raw first. Business rules on top.

The raw vault keeps the source's meaning untouched, so every number traces back to what the source sent. The business vault holds the interpretation: business rules applied to raw data, in satellites that hang off the same hubs.

In BimlFlex the business vault is its own batch, project and connection, modeled through the same accelerator and loaded after the raw vault it reads from.

By hand

One missing UPPER.

By hand, each source table becomes a hub, a satellite and often a link, each with its own DDL and its own load. Every key in every load has to be hashed exactly the same way. Miss one UPPER in one procedure and the same customer gets two hash keys.

Nothing errors. The joins just come back short, and someone finds out from a report.

BimlFlex

Tick a table. Get the vault.

The BimlFlex Data Vault Accelerator reads your imported source metadata and proposes the vault as you tick source tables: hubs for business concepts, links from the references between them, satellites for the descriptive columns. The default view shows the backbone of hubs and links; Expanded adds the satellites.

Split a satellite, add a link satellite, add an integration key or exclude a table, and the proposal redraws. Publish creates the vault objects and each mapping from source to target.

29vault objects from 10 source tables in one real publish: 9 hubs, 10 links, 9 satellites and a link satellite
All four platforms

Same vault. Your platform.

The model doesn't change when the platform does. BimlFlex writes every table and load in the target's own dialect: page compression on SQL Server, columnstore and hash distribution on Azure Synapse, CREATE OR ALTER on Snowflake, Delta tables on Databricks.

Targets include SQL Server, Azure SQL Database, Azure SQL Managed Instance, Azure Synapse, Snowflake and Databricks, run by SSIS, Data Factory or Databricks. Hub loads are insert-only merges; PIT and bridge tables get their own load procedures.

System TypeMicrosoft SQL Server
dv.HUB_Customer.sqlgenerated for SQL Server
CREATE TABLE [dv].[HUB_Customer]
(
	[Customer_SK] varbinary(20) NOT NULL
,	[Customer_BK] nvarchar(100) NOT NULL
,	[FlexRowEffectiveFromDate] datetime2(7)
,	[FlexRowAuditId] bigint
,	[FlexRowRecordSource] varchar(10)
,CONSTRAINT [PK_dv_HUB_Customer] PRIMARY KEY NONCLUSTERED ([Customer_SK] Asc) -- …
,CONSTRAINT [UK_dv_HUB_Customer] UNIQUE NONCLUSTERED ([Customer_BK] Asc) -- …
)
WITH (DATA_COMPRESSION = PAGE)
System TypeAzure Synapse
dv.HUB_Customer.sqlgenerated for Azure Synapse
CREATE TABLE [dv].[HUB_Customer](
	[Customer_SK] varbinary(20) NOT NULL
,	[Customer_BK] nvarchar(100) NOT NULL
,	[FlexRowEffectiveFromDate] datetime2(7)
,	[FlexRowAuditId] bigint
,	[FlexRowRecordSource] varchar(10)
)
	WITH(CLUSTERED COLUMNSTORE INDEX, DISTRIBUTION = HASH([Customer_SK]))
System TypeSnowflake Data Warehouse
dv.HUB_Customer.sqlgenerated for Snowflake
CREATE OR ALTER TABLE "dv"."HUB_Customer" (
	"FlexRowEffectiveFromDate" TIMESTAMP(7) NOT NULL,
	"FlexRowAuditId" BIGINT NOT NULL,
	"FlexRowRecordSource" VARCHAR(10) NOT NULL,
	"Customer_SK" VARBINARY(20) NOT NULL,
	"Customer_BK" VARCHAR(100) NOT NULL,
	CONSTRAINT "PK_dv_HUB_Customer" PRIMARY KEY ("Customer_SK")
);
System TypeDatabricks
dv.hub_customer.sqlgenerated for Databricks
CREATE TABLE IF NOT EXISTS `…`.`dv`.`hub_customer` (
	`Customer_SK` BINARY NOT NULL,
	`Customer_BK` STRING NOT NULL,
	`FlexRowEffectiveFromDate` TIMESTAMP NOT NULL,
	`FlexRowAuditId` BIGINT NOT NULL,
	`FlexRowRecordSource` STRING NOT NULL)
USING DELTA
-- …
ALTER TABLE … CLUSTER BY (`Customer_BK`);
Delta Vault™

The vault, in the lake.

Delta Vault™ is a Data Vault that lives in your data lake as Delta tables, with no database server underneath. Delta Lake brings what the database used to: each write completes in full or not at all, and a log records every change. So hubs, links and satellites can sit in cloud storage and still load safely.

BimlFlex builds it on Databricks from the same model as any other vault. Each hub, link and satellite is a Delta table in its own folder in the lake, loaded by generated notebooks. Putting the vault in the lake is a choice, not a rule: the model is the same, so it can go to SQL Server, Synapse or Snowflake instead.

  • Hubs, links and satellites as Delta tables in your lake
  • Point-in-time and bridge tables too
  • A reload notebook per source table restages any date range from persistent staging, so the vault can load again from history
Standards

Set it once. Override where it matters.

Naming affixes, standard columns, hashing and loading rules are settings, set once for the whole solution. Override one on a single object and only that object's code changes.

For example, PIT lag days can be 1 for the solution and 7 on PIT_Customer. The rebuild changes one line in one procedure. Where a setting isn't enough, 18 Data Vault extension points take your own SQL before, after or instead of a generated step.

Your way in

Pick your way in.

All three run on Biml, the same language. The difference is how much of the vault you write yourself.

BimlFlex

Get the whole vault from one model.

Hubs, links, satellites, PIT and bridge tables, the business vault and the marts on top, for the platform you run, as code you own. BimlStudio comes with every seat.

See BimlFlex
BimlExpress

Learn the pattern on your own tables.

Write a BimlScript template that loops over your source tables and emits a hub table and a load package for each, in Visual Studio 2012 to 2019, for SQL Server and SSIS. You own the template; there is no Data Vault feature to configure.

Download free
BimlStudio

Keep your own Data Vault framework as code.

The professional Biml IDE for teams whose vault pattern lives in BimlScript and builds from the command line in CI/CD. A published BimlFlex model can also be refreshed into a BimlStudio project and built there.

Start the free trial
Hubs.bimla template you write, BimlExpress or BimlStudio
1<Biml xmlns="http://schemas.varigence.com/biml.xsd">
2 <Tables>
3<# foreach (var table in RootNode.Tables) { #>
4 <Table Name="HUB_<#=table.Name#>" SchemaName="DV.dv">
5 <Columns>
6 <Column Name="<#=table.Name#>_SK" DataType="Binary" Length="20" />
7 <Column Name="<#=table.Name#>_BK" DataType="String" Length="100" />
8 <Column Name="LoadDate" DataType="DateTime2" />
9 <Column Name="RecordSource" DataType="AnsiString" Length="10" />
10 </Columns>
11 </Table>
12<# } #>
13 </Tables>
14</Biml>
BimlFlex Acceleratora model you tick
crm.Customer
dv.HUB_CustomerHUB
dv.SAT_Customer_crmSATELLITE

Links, PIT, bridge and loads follow from the same model.

See the vault BimlFlex builds.

Pricing is online. Buy there, or talk to sales for quotes, resellers and large teams.