internalsGet Pro

Module 11 · Lesson 3 of 11Pro

Columnar execution and massively parallel processing

Level
Intermediate
Topic
Data warehouses
Reading time
17 min

When you finish this page you can

  1. Estimate how much of a table a warehouse query reads, from the columns it names, compression and the number of threads.
  2. Explain how vectorized execution processes a column in blocks of values instead of one row at a time.
  3. Trace an aggregate query through a massively parallel plan: scan, join, partial aggregation, exchange and final merge.
  4. Decide when a bigger warehouse makes a query faster, and when it only makes it dearer.
  1. Row and columnar storage: why layout matters13 min
  2. Shuffles: the most expensive step in Spark17 min
  3. How cloud warehouses separate storage and compute17 min

1.5 billion rows in 4 seconds

On Wednesday 29 December 2027, an analyst on Daniel’s finance team prepares the year-end review. is an online store in India, taking about 500,000 orders a day. Its order lines flow from the store’s database through dbt into , where Daniel’s team reads them in Metabase.

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