The advantages and disadvantages of the Data Vault methodology

Photo Daan van Beek MSc
Author: Daan van Beek MSc
Business Partner
Table of Contents

At the heart of the Data Vault methodology is an ingenious modeling technique for data warehouses. It was put together by Dan Linstedt at the U.S. Department of Defense in an already distant past. A Data Vault stores all incoming transactions in a hyper-normalized structure. Regardless of whether this data has integrity and accuracy: “100% of the data 100% of the time”. The Data Vault distinguishes between facts and the truth. But who is waiting for the facts? In this article, read the main advantages and disadvantages, find the four differences between third normal form and Data Vault and finally arm yourself with the 10 irrefutable facts about Data Vaults.

Compliance and a Data Vault go hand in hand

As indicated, the Data Vault (DV) distinguishes between facts (raw perspective) and the truth (edited perspective). This can be useful to avoid losing any transactions or mutations. And is sometimes a must from a compliance and legislative perspective. On all fields you consistently keep history in the Data Vault. An ingenious construction of hub, link and satellite tables provides flexibility in terms of storage.

Find the 4 differences between the third normal form and Data Vault

Data Vault modeling is vastly different from regular data modeling (3NF). Below you can see the differences. From four tables (Figure 1) you go to nine tables (Figure 2). So a big difference is: more tables. What other differences do you see? Leave a comment with your answer.

3NF data modelFigure 1: orders of a company modeled according to the third normal form (3NF)

Data modelFigure 2: orders of a company modeled using the Data Vault methodology

How do you model the transformation from 3NF to DV?

  • You split each master table (reference table such as customer) into a hub table and a satellite table. The keys come in the hub table. The descriptive fields come in one or more satellite tables.
  • This creates the following flexibility: you can easily attach multiple satellite tables to the hub. Hence the name “hub”. This allows you to easily link customer data from other systems or external sources. This keeps the existing tables intact.
  • Joins between two master tables are created with a link table. This creates flexibility in the type of relationship that data has with each other.
  • You split each transaction table into a link table and a satellite table. The keys come in the link table. The transaction details come in the satellite table.

Example: suppose orders can suddenly be placed not only by companies but also by consumers. Then a few additional tables will suffice: Person Order Link (Person RK, Order RK), Person Hub (Person RK, ID (BK)) and Person Satellite (Person RK, first name, last name, etc.). The current Data Vault data model remains intact in this process. That is, there is no need to modify existing tables.

The 10 irrefutable facts about the Data Vault

  1. More tables for storage: data storage in a Data Vault requires more tables. At least twice as many tables are needed.
  2. More joins for data retrieval: more complex joins are needed to select the right data.
  3. Additional component: the Data Vault is an additional component in a mature DWH architecture. And that means extra work.
  4. End users may not access the Data Vault. The reason? It may contain incorrect or incomplete data.
  5. Three modeling techniques side by side: in the complete DWH architecture, three modeling techniques occur with the Data Vault: 3NF, Data Vault and Dimensional (star schema, snowflake).
  6. Flexibility in data storage: the Data Vault provides flexibility in data storage in a number of ways.
  7. Freedom: particularly in the type of relationship entities can have with each other
  8. Additional flexibility: being able to easily add new sources and entities. And for this you do not have to modify the existing structure.
  9. More data storage: even wrong or incomplete data is stored.
  10. Closed, secure environment: end users are not allowed to retrieve data from the Data Vault. After all, these may contain inaccuracies. So the Data Vault is secure as the name implies.

Hire a Data Vault architect

How do you design a Data Vault architecture?

A Data Vault can be applied as a Central Data Warehouse (CDW), but also as a pre-CDW or Persistant Staging Area (PSA). If you apply the Data Vault as a CDW, then it is not a mature DWH architecture. After all, you build data marts from the Data Vault and these have a dimensional structure.

Enterprise data warehouse architectureFigure 3: The Data Vault route and the traditional Business Analytics route. This figure shows that implementing a Data Vault involves extra work and makes the architecture more complex.

For the detail data, you then have to go back to the Data Vault. That one has a different structure and has no or different transformations. Moreover, it may also contain incorrect data. So a drilldown on a Data Vault is also dangerous. Therefore, a Data Vault can never replace the CDW in a mature DWH architecture. You want one version of the truth and then it cannot be enforced. Or you can only do that at a very high cost. Because, the data warehouse bus, which enforces that, is no longer there.

One specific indicator sometimes does require multiple aggregation tables. Each data mart can, in theory, thereby create an entirely separate truth. Thus, a Data Vault can easily degenerate into a collection of separate data silos. Just like in the pre-data warehouse era.

A mature DWH architecture

In a mature DWH architecture, a number of functions are performed:

  • you test the data quality
  • you build up a history
  • you combine data
  • you enforce consistency between data

For the latter, you think about consistency between aggregations and the details but also across aggregation tables.

In an Enterprise DWH architecture you can basically choose 2 routes: the traditional route and the Data Vault route.

The advantages of the Data Vault

  1. Data model of the Data Vault is separate from the data model of the sources. Changes therein are less likely to impact the Data Vault’s data model.
  2. Flexibility: data storage is flexible and easily expandable. Easy to add sources without having to change the structure of the current tables of the Data Vault. Is this flexibility achievable in any other way? A Data Vault is pre-eminently the way to achieve this kind of flexibility.
  3. Reloadability: data from the Data Vault can always be used to reload the CDW/data marts, far back in time. Even in case source systems have a different structure in the meantime.
  4. Compliance: always be able to trace the data back, regardless of structure changes in source systems.
  5. Speed of loading: when there are many satellite tables per hub, you can load them in parallel. When the hardware supports parallel processing, data loading is much faster.

Talk to a specialist

The disadvantages of the Data Vault

  1. More work: the Data Vault is more complex to create. In addition, you now have an extra component that you also have to maintain.
  2. More transformations: in the Data Vault, you normalize entities beyond the source. Afterwards, you have to “work back” to a dimensional data model.
  3. More knowledge required: with the Data Vault comes a 3rd modeling technique. Employees must master these techniques piece by piece.
  4. No integrity: the data in the Data Vault lacks integrity and is not always correct.

What happens after the Data Vault in the charging process?

The main advantage of the Data Vault is the flexibility of data storage. In a mature DWH architecture, you need a CDW and possibly one or more data marts or cubes in addition to a Data Vault. Of course, it is wonderful when structure changes in the source do not necessarily require the Data Vault to be “cracked open”. But this does not apply to the CDW and data marts, as these are dimensionally modeled (preferred) or 3NF. To illustrate this phenomenon, we give two examples.

Example 1: from one sales manager to multiple sales managers

A customer no longer has only one sales manager but as of today can have multiple sales managers. The relationship between the entities customer and sales manager goes from 1:1 to 1:n. Under the guise of “let the best be allowed to come out on top”.

Data vault exampleFigure 4: data model of the DWH before the change in the source is made (situation A: a customer has 1 sales manager) and the data model after the source is changed (situation B: multiple sales managers per customer)

As it becomes visible above, there is no longer a 1:1 relationship between customer and sales manager. Therefore, you link the Sales Manager dimension directly to the fact table.

Example 2: start serving consumers besides companies

The company no longer supplies only companies but also consumers. Due to the strong increase in online sales, the function of sales manager also disappears. The attributes relevant for this are removed from the Customer dimension table.

Data Vault exampleFigure 5: Data model of the data warehouse before the change in the source occurs (situation A: only companies) and the data model after the source is changed (situation B: also consumers can now be served)

The Customer Key is filled when delivery has been made to a company (Consumer Key remains empty). The Consumer Key is filled when delivery has been made directly to consumers (Customer Key remains empty). In the case of brokering, both the Customer and Consumer Key are filled.

By the way, you can also model the change regarding sales managers and consumers in a slightly different way but that doesn’t matter for the examples.

Data Warehouse and Data Governance Training

Data Warehouse TrainingElevate your data strategy with our intensive 3-day in-company Data Warehouse & Data Governance training. Gain practical tools and insights to conquer data challenges, from data quality to privacy compliance. Become a data warehouse expert and make informed decisions. Contact us now to secure your spot!

Data Warehouse Training

Source changes always lead to modification of data marts

Both examples show that even with a Data Vault it is necessary to adjust the data model of the CDW/data marts when the structure of the sources changes. What does this mean for the existing data in the CDW/data marts? The CDW can then either be completely rebuilt from the Data Vault (ETL/script modifications are necessary). Or a conversion ETL needs to be written that converts existing data from the CDW to the new structure and content.

Is the story of reloadability even true?

So the advantage of reloadability does not seem to be there. After all, in many, but not all, cases a conversion can suffice. In addition, a conversion can mark fact records from before the conversion. So that you can also determine (in retrospect) when the change took effect.

Situations in which a Data Vault has added value

  1. From the point of view of compliance and traceability, a Data Vault can offer added value. After all, there is an accurate record of when a data element enters the DWH environment from which source system.
  2. When the structure of source systems changes frequently to very frequently, or the organization operates in a very dynamic environment, a Data Vault can offer added value.
  3. When a lot of accountability information needs to be generated with fixed reports. A so-called Business Data Vault (which has the role of CDW) can then suffice, without data marts, in which only correct data is loaded. The BI tool retrieves these directly from the Business Data Vault.

Responses

Joel Wittenmyer wrote on 2017-09-22 - 15:09:

Daan,
4 years later, I’m wondering if your outlook on Data Vault has changed.

Downes Simon wrote on 2021-03-07 - 15:03:

What are your thoughts on Data Vault now? Given so many advances recently, Delta Lake for example, is there a need to do up front modelling such as DV?

Daan van Beek wrote on 2023-08-31 - 14:08:

I wasn’t a fan of the Data Vault anyway because it’s a huge burden on a BI project where you just want to give valuable insights to the users and to improve decision making on a daily basis. With new technology available now, like Microsoft Fabric, I’m even more against it. You need very good arguments to defend such a data modelling technique and extra component in your BI architecture.

You May Also Like

Featured image Data mesh makes the central BI department and data warehouse obsolete
Data mesh makes the central BI department and data warehouse obsolete
Featured image Wanted: Data Architects with a holistic perspective
Wanted: Data Architects with a holistic perspective
Featured image Every euro you invest in technology, you also invest in people
Every euro you invest in technology, you also invest in people

A selection of our customers

Become a customer now

Do you also want to become a customer of ours? We are happy to help you with data vault, data warehouse and data integration or other things that will make you smarter.

Photo Daan van Beek - Business PartnerDAAN VAN BEEK MScBusiness Partner

Contact me directly

Fact sheet

___
customers
___
training courses
___
people trained
9.3
customer satisfaction
___
consultants & teachers
3
offices
19
years of experience