Data Vault Basics

Data Vault Basics

Here, we offer the best of breed, hybrid data modeling solution for your Enterprise Integration needs. Join the growing community today, and interact with the Data Vault community. Learn how to meet the needs of the enterprise faster, cheaper, and more reliably.

The Data Vault architecture offers a unique solution to business problems and technical problems alike. It is focused squarely at the data integration efforts across the enterprise and is built from solid foundational concepts. A key to understanding the Data Vault is understanding the business. Once the business is mapped out and the practitioner has a firm grasp on how the business operates, then the process of building the Data Vault can commence.

The Data Vault has many benefits which are produced as a by-product of the basic engineering. Sticking to the Data Vault foundational rules and standards will help get any integration project off the ground quickly and easily. There are several areas of the Data Vault which we’d like to cover with you before diving into the community / forums. In case you are interested, you can also read about some of the ISSUES faced by those who undertake the Data Vault modeling.

It is very easy to convert both 3rd normal form and Star Schema to Data Vault model architecture, here we show how to convert from 3rd normal form. Inside the community we walk through the conversion steps to go from Star Schema to Data Vault model.

Business Benefits of Data Vault Modeling

  • Manage and Enforce Compliance to Sarbanes-Oxley, HIPPA, and BASIL II in your Enterprise Data Warehouse
  • Spot business problems that were never visible previously
  • Rapidly Reduce business cycle time for implementing changes
  • Merge new business units into the organization rapidly
  • Rapid ROI and Delivery of information to new Star Schemas
  • Consolidate disparate data stores., ie: Master Data Management
  • Implement and Deploy SOA, fast.
  • Scale to hundreds of Terabytes or Petabytes
  • SEI CMM Level 5 compliant (Repeatable, consistent, redundant architecture)
  • Trace all data back to the source systems

The following are the concepts which we cover on this site:

  • Definition of the Data Vault
  • Data Vault Benefits
  • From Business Case to Data Vault
  • Data Vault in 5 Easy Steps
  • Data Vault Through Pictures
  • SEI / CMM / Compliance

Definition: The Data Vault is a detail oriented, historical tracking and uniquely linked set of normalized tables that support one or more functional areas of business. It is a hybrid approach encompassing the best of breed between 3rd normal form (3NF) and star schema. The design is flexible, scalable, consistent and adaptable to the needs of the enterprise. It is a data model that is architected specifically to meet the needs of today’s enterprise data warehouses.

  • Extensive possibilities for data attribution.
  • All data relationships are key driven.
  • Relationships can be dropped and created on-the-fly.
  • Data Mining can discover new relationships between elements
  • Artificial Intelligence can be utilized to rank the relevancy of the relationships to the user configured outcome.

In Business Speak, it’s the ability to adapt quickly, model the business accurately, and scale with the business needs – converging IT and the business to meet the goals of the corporation. The Data Vault is a data integration architecture; a series of standards, and definitional elements or methods by way information is connected within an RDBMS data store in order to make sense of it.

The following business benefits are available as a result of building a Data Vault within an organization:

Data Vaults are extremely scalable, flexible architectures which allow the business to grow, and change without the agony and pain of “long IT lists of change impacts, and large cost outlays.” Typically when Businesses request a change to the data models (as a result of business changes), IT comes back with high costs, long implementation and test cycles, and long lists of impacts across the “enterprise warehouse”. With a Data Vault this is not the case, typically new functional areas of business are added quickly and easily, changes to existing architecture take less than 1/2 the traditional time, and usually have much less impact on the downstream systems.

Technical Benefits:

  • Near-Real-Time Loads
  • Traditional Batch Loads
  • In-Database Data Mining
  • Terabytes to Petabytes of information (Big Data)
  • Incremental Build Out
  • Seamless integration of unstructured data (NoSQL)
  • Dynamic Model Adaptation – self healing
  • Business Rule Changes (with Ease)

Since the Data Vault is based heavily on business process, it’s important to see how the business model represents the Data Vault, and how to make the transition from one to the other. Below is a series of descriptions and transitions that take you from one state of the Business Case model to the physical Data Vault Data Model that represents it. It also indicates how tightly tied the architecture is to the business itself. It also indicates how quickly the model can change when the business changes.

For this example, let’s examine a company with a marketing department that wants to build a sales campaign to sell slow moving products. The hope is that the customer will see the campaign, like the new low price of the product, and make a purchase from the company. When the analyst re-iterates what they heard in the user interviews, the analyst says to the business users, that he heard them say: “Marketing generates a sales invoice”. The business users quickly correct him (and the case model) and state that Finance generates the invoices. Of course, for this example hopefully the customer then provides feedback to the company about the marketing campaign, and company friendliness.

In the corrected business case, we change the model from the representation above, to the representation below. Not a large change, just a difference in departments. Hopefully there is communication between Finance and Marketing (which is not shown in this case example).

When we move on to discuss implementation of the business model, we begin to pair down the scope of the project – in order complete it in budget, on-time, and with limited resources. In this particular case, the Company decides that we can add Marketing, Finance, and the enterprise (company) later – thus making it out of scope. They tell us that we should focus on the implementation of campaigns, invoices, products, and customers. All of which are free-standing elements in business and have their own “tracking numbers”. In other words, it’s campaign MKT-1, Invoice Numbers, Customer Accounts, and Product Numbers that tie all this data together.

Upon further investigation, we discover that the business wants to track campaign effectiveness ratings, dates (length of time for the campaign), dates and amounts on invoices and line-items, products and their availability dates, descriptions, stock quantities and defect reasons; finally we discover they already have customer addresses, contacts, and other demographic details. The next model that we build is based on the concepts of the Data Vault and ties directly back to the business descriptions of granularity of data, and keyed information. For the purposes of scope and this example, we will limit the logical data model to the area outlined in RED.

Below is what our first cut logical Data Vault data model looks like. We take the business keys such as Invoice Number, and Product Number and build them into their own hubs. Then, we take the interaction between invoices, and products and build a link table called Link Invoice Line Item. Line items cannot “stand alone.” They depend on other key information to locate, and describe what they belong to. There is however, an error in this model (see HUB CUSTOMER ID embedded in the Link Invoice Line Item).

The error is a result of shifting grain into the wrong location. The correct grain is: invoices are tied to customers (usually 1 to 1 correspondence), with a customer capable of having many invoices. It is very rare (although does occur) that a business can actually have different customers per line-item, all build on the same invoice (this is the grain represented above). The proper line-item link table would not contain a customer ID. The corrected model would have an additional link between Hub Invoice and Hub Customer, to represent the interaction between customers and invoices.

Is the Data Vault Simple or Complex? Is it Easy to implement? Yes, it’s both simple, and easy to implement. It’s based on a set of redundant structures, and auditable principles. By utilizing the Data Vault standards your project will automatically gain the benefits of auditability, scalability, and flexibility. The following set of web-pages will guide you through the process of building a Data Vault in 5 easy steps.

Step 1: Establish the Business Keys, Hubs
Step 2: Establish the relationships between the Business Keys, Links
Step 3: Establish description around the Business Keys, Satellites
Step 4: Add Standalone components like Calendars and code/descriptions for decoding in Data Marts
Step 5: Tune for query optimization, add performance tables such as Bridge tables and Point-In-Time structures

Build your data marts, and your ETL loading processes, and away you go. Building a Data Vault gets easier as you go, eventually replacing the “band-aid” methods commonly used in Enterprise Integration Architectures. The model is built in such a manner that it can easily be extended when desired. The worlds smallest Data Vault consists of 1 Hub with 1 Satellite, say customer. The flexibility is built into the link-table concepts.

For those of you wishing to view examples of Data Vaults, we’ve provided some samples of different models. These are for viewing purposes, and are generic models which can be customized to meet your needs. The DDL for the Northwind Data Vault is available inside the forums. This is a standard data model, and full size images are available on request.

We start with a simplified 3NF data model, often times the source data model represents the business as it stands today – at least it represents the business processes which collect the information. Of course, we wish to correct some of the errors occurring in the business process as well.

Northwind 3NF Data Model:

The following is the first step in the series of 5 identified above. Identifying the business keys, and placing them in the standard Hub Structures. This can be challenging if the Business Keys are “smart-keys”, or composite keys made up of several identifiable relationships. Although, normalization to the nTH degree is discouraged, it is good to identify and document the metadata for these composite keys.

Northwind Data Vault Model, HUBS Identified

Step 2, identifying the Links or relationships between the business keys. This process can be a little tricky sometimes – particularly if the data set says the business keys are “weak”, and can’t stand on their own, or are non-identifying (non-unique). In these cases, we can end up with one-legged link tables, which is something we work through to correct during the modeling process. Again, the Link tables represent relationships, transactions, hierarchies, and define the grain of the data on the intersection.

Please note the importance of grain defined between order, employee, shipper and customer. The grain of this relationship (link table) is defined by the source system, however it is subtle and easy to miss.

Northwind Data Vault Model, Hubs and Links
 

The final image below shows a complete Data Vault, with all the hubs, links and satellites available. While the white-papers have defined Point-In-Time tables, and Bridge Tables, they are not required by the architecture. These alternate tables are utilized strictly for query performance reasons. There are certain MPP databases which can execute without “query assist tables” such as point-in-time and bridge tables. That said, many of the Data Vaults in place today are not implemented on MPP systems, and thus require these tables to be present in order to reduce the number of joins.

COMPLETE: Northwind Data Vault Model, Hubs, Links and Satellites

The Data Vault comes with rules, or standards which make the design repeatable, and redundant. Part of SEI/CMM (Software Engineering Institute, Capability Maturity Model) is to have organizations reach a level of business processes which are: documented, repeatable, redundant, fault-tolerant, and eventually: automated. It also defines risk analysis, KPA’s (key process areas) and KPI’s (key process indicators – metrics) for the organizations by which they can measure the improvement and accuracy of these business processes. These are equivalents to ISO900x, PMBOK, Six-Sigma practices in other disciplines.

Compliance has been around for years in the private sector, and when the Government put a mandate out that all government contractors will become SEI/CMM Level 5 compliant, compliance took on a whole new meaning. Data traceability came bubbling to the top, accountability of business users to find and fix their own business problems also rose to the top.

Compliance itself has many meanings, but in the case of Sarbanes-Oxley and Basil II/III accords, and other compliance initiatives – it strikes hard on data traceability, and business accountability. The IT staff must be enabled through the use of their models (Data Vault or Not) to track data as it stood, when it was created. In the case of the Data Vault, we’ve made it easier. The Data Vault provides a series of standard fields which track data changes by date, and where they came from – and the Data Vault is always modeled to hold the lowest possible grain of data from the source systems. That is to say: data is integrated, but not modified when it is stored in the Data Vault. The Satellites are split by type of data and rate of change which allow reduced storage requirements, and increased traceability.

The business rules which are usually implemented “on-the-way-in” to the data warehouse, are moved, shifted, to be implemented “on-the-way from the warehouse to the data marts”. Thus, allowing a single active data warehouse (Data Vault model) to be built as a statement of fact, and each of the data marts can represent their own “version of the truth” based on a single sourcing point.

When following the standards in loading information into the Data Vault, the IT staff automatically inherits “data compliance and traceability”. The business can point at the data mart and claim that it’s “wrong” today, and “right” tomorrow, but IT can always show where the data came from, when it came in, and what it looked like before alteration/transformation, aggregation and cleansing – thus meeting the compliance initiatives becomes easier.

SEI/CMM processes are defined as a part of the standards and have been built into the architecture, making the loading process, querying process and discovery process repeatable, redundant, and fault-tolerant.