← All projects

STAR SCHEMA × DATA VAULT 2.0

Two ways to model the same retail data

The project explores two fundamentally different approaches to structuring the same retail dataset: a dimensional Star Schema designed for analytics and a Data Vault 2.0 model designed around business objects, relationships, historization and traceability. The basis is a digital retail receipt with header- and line-item-level data; the goal was a market-basket analysis at the level of the individual line item, where it becomes visible which products occur together in one purchase.

A practical comparison of analytical simplicity, historization and scalability using receipt-level retail data.

  • SQL
  • Data Modeling
  • Kimball
  • Data Vault 2.0

IU Academic Project · Completed

SAME DATA. TWO MODELS.

Two architectures, built from one dataset

01 STAR SCHEMA

Star-Schema-Modell mit zentraler Faktentabelle Fact_Sales_Item und den Dimensionstabellen Dim_Product, Dim_Date und Dim_Store

DESIGNED FOR ANALYSIS

Fact and dimension tables organize the retail data around analytical queries and make the model straightforward to consume for BI and reporting. A central fact table Fact_Sales_Item sits at line-item granularity, surrounded by Dim_Product, Dim_Date and Dim_Store; the star-shaped structure makes the analytical axes immediately visible.

GRAIN

One row in Fact_Sales_Item = one product line within a receipt.

02 DATA VAULT 2.0

Data-Vault-2.0-Modell mit Hubs (Hub_Store, Hub_Product, Hub_Receipt), dem Link Link_Sales_Item und den zugehörigen Satellites

DESIGNED FOR CHANGE

Hubs represent business objects, Links represent relationships and Satellites store descriptive attributes with historization and source tracking. Hash keys, load date and record source make every row traceable.

HUBS
Business objects
LINKS
Relationships
SATELLITES
Attributes + history

MODEL COMPARISON

Two models. Different priorities.

STAR SCHEMA
DATA VAULT 2.0
Primary purpose
STAR SCHEMAAnalytical querying and reporting
DATA VAULT 2.0Integrating and historizing data from source systems
Structure
STAR SCHEMAA central fact table surrounded by dimension tables
DATA VAULT 2.0Hubs (business keys), Links (relationships) and Satellites (descriptive attributes)
Analytical readability
STAR SCHEMAThe analytical axes are visible directly in the structure
DATA VAULT 2.0Data is spread across hubs, links and satellites and has to be joined back together for analysis
Historization
STAR SCHEMADepends on how the dimensions are designed
DATA VAULT 2.0Built in: satellites keep descriptive attributes over time, with load date
Source-system flexibility
STAR SCHEMAModeled around the needs of the analysis
DATA VAULT 2.0Designed to take in additional sources through new links and satellites
Query complexity
STAR SCHEMAFewer joins between the fact table and its dimensions
DATA VAULT 2.0More joins across hubs, links and satellites
Typical use
STAR SCHEMAReporting and BI on a single, well-understood source
DATA VAULT 2.0Long-lived warehouses with multiple or changing source systems

MODELING DECISIONS

What changed under the hood?

GRAIN

One row in the fact table represents one product line within a receipt.

BUSINESS KEYS

Product, store and receipt represent core business objects.

HISTORIZATION

Data Vault satellites preserve descriptive attributes over time.

TRACEABILITY

load_date and record_source support historical tracking and lineage.

WHAT I LEARNED

Data modeling is not about making the architecture as complex as possible.

The comparison showed that different modeling approaches optimize for different priorities.

ANALYTICAL SIMPLICITY

Star Schema

STRUCTURAL FLEXIBILITY

Data Vault 2.0

CONCLUSION

What fits this use case?

For this use case — a single data source, direct market-basket analysis — the Star Schema proves more suitable: simpler, easier to understand, faster to use. Data Vault scores on flexibility, historization and extensibility, and would show its value primarily with multiple source systems and growing data landscapes.

This is a conclusion about this project, not a universal rule.