Why the data that runs a business and the data that answers questions about it end up in different shapes.
A small table
Here's a table of orders. Five rows, five columns:
| Order | Date | Region | Product | Amount |
|---|---|---|---|---|
| 1001 | 2026-10-01 | East | Widget | 120.00 |
| 1002 | 2026-10-01 | West | Gadget | 75.50 |
| 1003 | 2026-10-02 | East | Widget | 120.00 |
| 1004 | 2026-10-02 | East | Gizmo | 42.00 |
| 1005 | 2026-10-03 | West | Widget | 120.00 |
Data like this is usually kept one of two ways: split into several linked tables stored row by row, or joined into one wide table stored column by column. The first is built for writing and reading records, one at a time. The second is built for finding trends across large datasets.
On screen, both look like the same table. The difference is how the database lays the data out underneath, and that decides what it has to read to answer a question.
Relational: linked tables, one row at a time
A relational database usually wouldn't keep that flat table. It splits it into several tables and links them with IDs. That's called normalizing. Orders keeps a RegionID and a ProductID instead of the names:
Orders
Order | Date | RegionID | ProductID | Amount
1001 | 2026-10-01 | 01 | a3v | 120.00
1002 | 2026-10-01 | 02 | e5h | 75.50
1003 | 2026-10-02 | 01 | a3v | 120.00
1004 | 2026-10-02 | 01 | y7s | 42.00
1005 | 2026-10-03 | 02 | a3v | 120.00
Regions
RegionID | Region
01 | East
02 | West
Products
ProductID | Product
a3v | Widget
e5h | Gadget
y7s | Gizmo
Each fact is stored once. If "Gizmo" gets renamed, it changes in one place, not on every order.
Underneath, each table is stored one row at a time. Order 1001's row sits together (its date, a region code, a product code and the amount), then 1002's, and so on. The names aren't in that row, only the codes. That's the right layout for transactional records, the orders and payments that run a business. When an order comes in, the database writes one short row of codes to Orders. When someone pulls up order 1003, it reads that row, then looks up what its codes mean in Regions and Products.
Columnar: one wide table, one column at a time
A columnar database usually goes the other way. The tables are joined once, ahead of time, into one wide table with the names written out on every row, like the table at the top. Then each column is stored together:
Every value in a column sits together, so the database can reach straight in and grab just the columns a question needs.
Reaching in for the answer
Ask: "What were Widget sales in the East?"
The answer needs three columns: Region, Product and Amount.
- Relational joins Orders to Regions and Products to put the table back together, then reads every row, all five columns, to get to those three.
- Columnar reaches straight into the Region, Product and Amount columns, picks out the two Widget orders in the East, and adds them up. No join, and it never touches Order or Date.
With five rows, nobody would notice. A real orders table has millions of rows and 40 or more columns. Now the relational database reads all 40 columns to use 3, and the columnar one reads only the 3.
The joins add up too. A real business system can have hundreds of tables, and one report can need many joins. Each join is work, and the work grows as the tables grow.
It packs down small
Look at the Region list: East, West, East, East, West.
A column holds one kind of value, and values repeat. Sorted, that list can be stored as "East ×3, West ×2." A row mixes an order number, a date, a name and an amount, and doesn't pack down nearly as well.
That's why the flat table works. In a row-based layout, writing "East" a million times would be wasteful. In a column, those repeats are exactly what packs down small.
Smaller columns mean less to read from disk, and more of the data fits in memory.
Less to read, every time
Put those together and a columnar database reads only the columns the question needs, those columns are compressed, and there are no joins to run. That's where the speed comes from. It isn't magic. It's skipping work the question doesn't need.
It also explains a report that was fast when it was built and gets slower every year. The question doesn't change. The tables get longer, and a row-based layout joins them and reads every column of every row, every time.
Built from, not copied
Most companies run both. The transactional system takes the orders, and a columnar copy built from it answers the questions, so heavy reports don't slow down the people entering orders.
That reporting data isn't just the order system stored by column. It's built from it, and often from more than one system:
- Combined: orders from one system, costs from another, targets from a spreadsheet.
- Cleaned up: "Mass." and "MA" become one state, and codes become names people recognize.
- Kept: history the order system overwrites, like what a price or a status was last quarter.
- Shaped for the question: flattened, with fields like margin or days open already worked out.
That's why the two rarely match row for row, and they shouldn't. One is built to run the business. The other is built to ask questions about it.
Side by side
| Relational (by row) | Columnar (by column) | |
|---|---|---|
| Built for | Running the business | Asking questions about it |
| Stored together | Everything about one record | Every value in one column |
| Table design (typical) | Many normalized tables, linked by IDs | Wide, flat tables |
| Each fact | Stored once | Repeated on every row, then compressed |
| Fast at | Adding, changing or pulling up one record | Totals, trends and comparisons across many records |
| Slow at | Joins and a few columns across millions of rows | Changing one record at a time |
A note on AI
More people now ask AI tools questions about their business data. The answer isn't to hand an AI 40 million rows and hope it adds them up. As I wrote in How Many R's in Strawberry?, on its own AI guesses at counts. With the right tool, it counts.
So we don't give AI the rows. We give it the right tools. It turns the question into a query, the database does the counting, and the AI explains the answer. A columnar database is part of that tool set: it reaches into millions of rows, returns a short, exact total in seconds, and the AI works from that instead of guessing.
Same question for your business
- Do your reports run on the same database that takes your orders?
- How many tables does your slowest report have to join?
- Which report gets slower every year?
- How many columns does that report actually use, out of how many in the table?
- Is there data built for reporting, or is every report starting from scratch?
Closing
Running the business and asking questions about it need data in different shapes, and the shape decides which questions are fast. Store it the way you ask it.
I'm Keith Garvey, Director of Education at Dimensional Insight, where my work is enabling executives to drive adoption of insights.