View on GitHub

Star schemas: facts and dimensions

Data architecture planned

Why the analytics team keeps talking about facts and dimensions.

The idea

Analytics databases are often modeled as a star: one central fact table of events, like sales, surrounded by dimension tables describing who, what, where and when. It’s the shape most BI tools expect.

The design keeps queries simple and fast, and it makes the grain explicit: exactly what one row of the fact table means.

What the lesson will build

Key ideas

The video

When it’s published, the code will live in data-architecture/ and this page will link to it.


All topics · Suggest a topic