Skip to content
About
Main content
Meaning

Data Modeling

What does one row mean, who is allowed to change that answer, and what breaks downstream when they do?

Who this mechanism is for: a developer who writes code, calls APIs and knows basic SQL (SELECT, JOIN, GROUP BY, SUM), but has never designed a data warehouse or studied dimensional modeling. You do not need any database-internals knowledge. Every technical term is explained the first time it appears, and again in the glossary at the end. Unlike most technical topics, this mechanism is about meaning and agreement between people. The code is easy. The hard part is that nothing in the machine tells you when a model is wrong.

The story we will follow

Nadia is an analytics engineer at Fernwood Outfitters, an online shop that sells camping gear: tents, stoves, boots, sleeping bags. Fernwood keeps its data in a warehouse (a database built for analysis, not for running the shop). Owen is the finance controller. He reads the revenue numbers in the monthly board report. Sales, marketing, support and finance all build their own dashboards on the same warehouse.

During one quarter Nadia will meet eleven problems, one at the start of each article below. Each problem looks like a bug. None of them is a bug. In every case the machine did exactly what it was told, and the number on the screen was still wrong or disputed. At the end of each article, we go back and solve her problem with the mechanisms of that part.

This is the main idea of this whole mechanism:

How this mechanism is organized

After that: a summary, hands-on labs, interview questions and a glossary.

One request: read the "Compression" sentence at the end of each major section. It is the shortest honest statement of what the section teaches.

What do I do, and what does each option cost?

Can I see it myself?

Can I reason about it under questioning?

Trade-offs

The tensions this mechanism takes a position on. Each recurs across mechanisms.

Show all 6 trade-offs
Recurring principles

Ideas this mechanism meets that keep coming back, mechanism after mechanism.

Show all 8 principles