internalsGet Pro

Module 05 · Lesson 2 of 12Pro

Normalized vs denormalized tables

Level
Beginner
Topic
Data modeling for analytics
Reading time
14 min

When you finish this page you can

  1. Explain why the store’s database keeps each fact in one place, and what that costs a report.
  2. Build a denormalized table that joins once at load time, and estimate what its repeated values cost.
  3. Sort copied columns into values that must stay frozen and values that must follow the source.
  4. Choose between appending, rebuilding and joining at query time for columns that change.
  1. Operational vs analytical data: two different jobs13 min
  2. Join pitfalls: duplicated and missing rows16 min
  3. Why data modeling matters for analytics13 min

“Mobiles” and “Phones” in the same October

is an online store in India, with about 60,000 orders a day. Every night Meera, Kartly’s data engineer, copies the day’s orders and order lines from the store’s PostgreSQL read replica into a file. Daniel, who leads finance reporting, reads the results 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