Two ways of organising analytical data keep returning in team discussions. One is the dimensional model: a narrow fact table of events surrounded by dimension tables for customers, products, dates and stores. The other is the one big table, often shortened to OBT: every attribute copied onto every event row, so an order line carries the customer’s city, the product’s category, the store’s region and the calendar month right next to the amount.

Both work. Both are used in serious companies. I will argue for a particular arrangement at the end, but first let me give the wide table its due, because it is easy to dismiss it as a beginner’s shortcut and that is not fair.

The case for the wide table

Analysts love it for good reasons. There are no joins to write, so there are no join mistakes, no accidental row multiplication and no confusion about which key links what. A business user dragging fields in a BI tool sees one list of columns. In modern columnar warehouses, reading a few columns from a very wide table is cheap, because columns you do not select are not read, and storage is inexpensive. Queries that used to need five joins become a single scan, which is often faster.

It also freezes the facts as they were. If the product’s category was “Snacks” on the day of the sale, the row can keep saying so even if the product is later reclassified, which is useful when history should not be rewritten.

What it costs

Take a retailer in Jaipur with 5 crore order lines and 20 lakh customers. In a wide table, each customer’s city is stored once per order line they ever placed. Suppose a customer moves from Jaipur to Indore. In a dimensional model you update one row in the customer dimension. In the wide table you must decide whether to rewrite every historic row for that customer, which may be hundreds of rows across a huge table, or leave them alone and accept that one customer appears in two cities. Neither is wrong, but the decision has to be made and documented for every attribute, and rewrites on a big table are expensive.

Consistency is the second cost. When three different wide tables each copy the customer’s segment, a change to the segment rule must be applied three times, and one will be forgotten. In a star, the segment lives in one place and every fact table uses it.

The third cost is that a wide table is bound to one grain. An order-line table cannot hold, say, a monthly budget by region without awkward repetition, and you cannot sum a budget that has been copied onto every order line in that region. Anyone who has seen a target appear 40,000 times in one month’s total knows what that looks like. A dimensional model gives the budget its own fact table at its own grain, and conformed dimensions let the two be compared safely.

Finally, distinct counts and averages get slippery. Counting customers on an order-line table requires a distinct count rather than a row count, which is easy to forget. Averaging a customer attribute over order lines weights frequent buyers more heavily than occasional ones, which may not be what the question intended.

What the star gives you in return

It gives you one definition per business entity, a clean place to track history (the slowly changing dimension approach), several fact tables sharing the same dimensions, and a model that BI tools such as Power BI are designed around. The price is that users or the semantic layer must handle joins, and a poorly built model can still multiply rows through bad keys.

A simple way to decide

SituationLeans towards
One fact, one team, a few dashboards, stable attributesWide table
Several facts sharing customers or productsStar
Attributes change often and history mattersStar with history tracking
Mostly exploratory work in notebooksWide table, built from the star
Strict, audited enterprise reportingStar

My side

Model in stars; serve in wide tables where it helps. The star is where definitions live and where changes are made once. A wide table is a view of that model, built by a scheduled job that joins the facts to their dimensions, rather than a source of truth maintained by hand. Treating the wide table as a disposable, rebuildable output removes most of its downsides: if a customer’s city or a category rule changes, you rebuild it, and nobody edits it directly.

The team that starts with only a wide table is not making a crime, particularly if it has one source and three dashboards. The risk comes six months later, when a second fact arrives and the table starts growing columns for things it was never designed to hold. That is the moment to introduce dimensions, and it is far less painful if you have kept entity definitions in one place from the start.

Figures and names in the examples are illustrative.

Leave a Reply

Trending