Ir para o conteúdo

Lição 4 · Architecture

Inmon, Kimball and Data Vault

Compare the Inmon, Kimball and Data Vault approaches to warehouse design, see how hubs, links and satellites work, and learn how to choose and combine them.

Three named approaches come up in almost every warehouse discussion. They are not products. Each is a way to decide how the core and the marts should be modeled, and what to build first.

You do not need to pick one forever. Many real warehouses mix ideas from all three.

Inmon: integrate first

In the approach associated with Bill Inmon, you build a central enterprise data warehouse that integrates data from across the organization. It is usually modeled in a normalized form. Data marts, often dimensional, are then built from that central store.

  • Strength: one integrated, consistent foundation; each fact is stored once.
  • Cost: it needs a broad understanding of the business and more design before readers see value.

Kimball: deliver by business process

In the approach associated with Ralph Kimball, you build dimensional models one business process at a time: sales first, then inventory, then returns. The models are connected by conformed dimensions, shared dimension tables such as customer, product and date that mean the same thing everywhere. The set of connected models forms the warehouse. A planning grid called the bus matrix keeps it consistent.

  • Strength: useful results early, and tables that analysts find easy to query.
  • Cost: without discipline about conformed dimensions, it turns into disconnected marts.

It is a common misunderstanding that Kimball means "only marts, no integration". Integration happens through the conformed dimensions and the loading process.

Data Vault: model for change and audit

Data Vault, introduced by Dan Linstedt, splits data into three kinds of table:

Table type Holds Example
Hub The list of unique business keys for a concept One row per customer number
Link A relationship between hubs Customer placed order
Satellite Descriptive attributes and their history, attached to a hub or link Customer name and city over time

New sources and attributes are usually added as new satellites or links, without redesigning existing tables. Rows carry the load time and record source, which helps auditing. The price is many tables and joins, so a Data Vault core normally feeds dimensional marts that people actually query.

SQL A tiny Data Vault with history

Press Run (or Ctrl + Enter) to see the result here.

The first query returns Bogota, the second Quito. Note what the second question really asks: what the warehouse had loaded by that date. That may differ from where the customer really lived then. This is a theme you will return to with slowly changing dimensions.

Real Data Vault designs add conventions such as hashed keys and change detection columns. This example only shows the core idea.

Side by side

Inmon

Central, normalized core
Marts come from it
1 / 3

How to choose

Ask practical questions:

  • How soon is value needed, and for which process? A focused dimensional model can deliver early.
  • How many sources, and how often do they change? Many volatile sources favor designs that absorb change well.
  • How strict are audit requirements? You may need to show where each value came from and when it arrived.
  • What can your team maintain? A design nobody understands will decay.
  • What do your tools support? Automation matters a lot when a model has many tables.

Whatever you choose for the core, the layer people query is very often dimensional. That is why the next chapters spend much of their time on stars, facts and dimensions. For a related comparison, read normalization, denormalization and Data Vault.

One requirement, three designs

Suppose the support team starts using a new tool, and you must add its tickets and a new customer attribute, "preferred language".

  • In an Inmon-style core, you extend the integrated model: add ticket tables, relate them to the existing customer entity and add the attribute in the right place. Then you update the marts that need it.
  • In a Kimball-style warehouse, you add a ticket fact table. It reuses the conformed customer and date dimensions, and you add the language attribute to the customer dimension once, so every star can use it.
  • In a Data Vault, you add a ticket hub, a link between tickets and customers, and satellites. The language arrives as a new satellite from the new source, so existing tables and their loads stay as they are.

In all three, someone still has to decide how a person in the support tool is matched to a customer you already know. No modeling method answers that for you.

Hybrids in practice

A common arrangement uses each idea where it is strong:

  1. Raw data lands in staging.
  2. A core layer integrates and keeps history, in a normalized or Data Vault style.
  3. Dimensional marts, with conformed dimensions, serve analysts and dashboards.

A smaller team often merges steps 2 and 3: staging feeds dimensional models directly, with cleanup in intermediate transformations. That is a sensible starting point as long as raw data is retained and the dimensions are shared. You can add a separate integration layer when the number of sources or the audit needs justify it.

Questions that expose weak designs

Whatever the name of the method, test a proposed design with concrete questions. Can you tell which source supplied a value? Can you rebuild a mart after fixing a rule? Can you add a source without rewriting existing loads? Can an analyst find the right table without help? Can you remove one person's data if required? A design that answers these clearly is in good shape.

Common mistakes

Do not choose an approach because of its reputation. A two-person team with three sources rarely needs a large Data Vault. A regulated organization with dozens of changing sources may find a loose set of marts hard to audit.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which idea is central to the Kimball approach?

    Shared conformed dimensions are what link the separate process models.
  2. 2. In Data Vault, where do a customer's changing city values belong?

    Satellites hold descriptive attributes and their history.
  3. 3. What best describes the Inmon approach?

    It starts with an integrated enterprise warehouse that feeds the marts.
  4. 4. Why does a Data Vault core usually feed dimensional marts?

    Marts give analysts fewer joins and friendlier tables.

Summary

  • Inmon: an integrated central warehouse first, marts derived from it.
  • Kimball: dimensional models by business process, tied together with conformed dimensions.
  • Data Vault: hubs, links and satellites that handle change and audit well.
  • Hybrids are common; choose from your constraints, not from fashion.

Next: Cloud Warehouses, Data Lakes and Lakehouses

Seu progresso fica salvo neste navegador. Não precisa de conta.