internalsGet Pro

Module 05 · Lesson 12 of 12Pro

Design: a data model for an online store

Level
Intermediate
Topic
Data modeling for analytics
Reading time
28 min

When you finish this page you can

  1. Design a complete analytics model for an online store, from the readers’ questions to fact tables, shared dimensions, keys and derived tables.
  2. Make every fact load find its dimension rows with one rule, so a dimension that keeps history never duplicates facts.
  3. Order a nightly model build into stages with blocking checks, and decide what each night rebuilds and what it never touches.
  4. Explain which parts of the model change at ten times the data and at Kartly’s next stage.

Builds on 5 lessons

Start with lesson 317 min
  1. Dimensional modeling: facts and dimensions17 min
  2. Grain: deciding what one row means16 min
  3. Slowly changing dimensions: types 1, 2 and 317 min
  4. Modeling events and clickstreams17 min
  5. Metrics and semantic layers: one definition each16 min

The night every lesson ran together

It’s 02:40 on Wednesday 18 November at . Kartly is an online store in India. Every night a job copies the day’s orders and about 10 million click events from the store’s PostgreSQL read replica into a file on one 8 GB server. Then it builds the tables that Daniel, who leads finance reporting, reads at 07:00, along with the category, growth and ML teams.

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