The engineer's eye
Star schemas, taken literally
Kimball named the star schema after a drawing: one fact table in the middle, its dimensions around it. Draw a whole Gold layer that way and the stars start to overlap, because the good dimensions are shared. That overlap is the point of the model, and it is easier to feel in a sky than in a diagram tool.
The Gold layer of : constellations, dimension stars
Each fact is the bright star of its constellation; lines run to the dimensions it joins. A star shared by several constellations is a conformed dimension, and the layout puts it between the facts that use it. Magnitude is log row count. The halo grows with the nights this year the table had a test warn or fail. Faint field stars are the Bronze and Silver tables, sitting beside what they feed. Hover for detail; click a star to light up everything that conforms to it.
The same sky, as a bus matrix
Here is the boring version. Facts down the side, dimensions across the top, a dot where a fact joins a dimension, both sorted by how much they are shared. It holds exactly the same information as the sky. Ask "which facts share dim_customer?" and the matrix answers in one glance down a column; the sky makes you trace five lines and count. The matrix is the tool. The sky is the thing you show a steering committee so they understand why a conformed customer dimension is worth a quarter of work.
Kimball bus matrix
Totals: dimensions per fact on the right, facts per dimension below. Hover a dot for the join column and the source column it plays. Click a row or column to select it in the sky.
Notes
- Kimball called it a star schema for the picture, and the bus matrix is its star chart. Read literally, conformed dimensions become stars that several constellations share, which is the clearest image I know for why conforming them matters.
- The literal reading earns its keep in the halos. dim_customer looks clean and its neighbors glow: a shared dimension shares its problems, and its own tests cannot see them.
- dim_date is the pole star. It sits in every constellation, so its column in the bus matrix is solid dots and tells you nothing. Hide it and the real structure shows: fct_gl is an island, joined to the rest only by the calendar.
- What the sky hides: grain, and roles. dim_date is one star but plays a different date in every fact (order, ship, snapshot, session start, posting, invoice, close). The matrix tooltip names the role; a proper bus matrix would print it in the cell.
- The fair pushback: a constellation is decoration unless the encodings carry data. Here position comes from the join graph, magnitude from rows, halo from tests, and the replay from each night's results. Distances between stars still mean nothing exact. Do not read them.