internalsGet Pro

Module 05 · Lesson 7 of 12Pro

Wide tables: when one big table works

Level
Intermediate
Topic
Data modeling for analytics
Reading time
17 min

When you finish this page you can

  1. Explain why adding columns to a table in columnar storage barely changes what a query reads, and where width does cost.
  2. Build one big table from a star schema at the fact table’s grain, with checks that its rows and totals match the fact.
  3. Keep one wide table per grain, and decide which version of history the wide table copies.
  4. Choose between a stored wide table, a view over the star and the star alone for a given group of readers.
  1. Row and columnar storage: why layout matters13 min
  2. Normalized vs denormalized tables14 min
  3. Star and snowflake schemas18 min
  4. Grain: deciding what one row means16 min

The category team wants 40 columns in one table

is an online store in India, with about 60,000 orders a day. Every night Meera, Kartly’s data engineer, loads the day’s orders from the store’s PostgreSQL read replica into a file on one 8 GB server. There she builds the star from this module: fct_order_lines, one row per order line, with dim_product, dim_customer and dim_date around it. Daniel, who leads finance reporting, reads the numbers at 07:00.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan