internalsGet Pro

Module 11 · Lesson 4 of 11Pro

Partitioning, clustering and pruning

Level
Intermediate
Topic
Data warehouses
Reading time
16 min

When you finish this page you can

  1. Explain how Snowflake skips micro-partitions using each one’s minimum and maximum values, and why row order decides how many it skips.
  2. Read pruning in a query profile by comparing partitions scanned with partitions total.
  3. Choose between sorting rows in the build and a clustering key with Automatic Clustering, and say what each costs.
  4. Compare Snowflake’s automatic micro-partitions with BigQuery’s declared partitions and clustered tables.

Builds on 3 lessons

Start with lesson 217 min
  1. How cloud warehouses separate storage and compute17 min
  2. Writing fast analytical queries17 min
  3. Materializations: views, tables and incremental models18 min

A 7-day tile that reads every row

At 10:00 IST on Wednesday 29 December 2027, Daniel opens the “Orders, last 7 days” tile in Metabase. It used to load in a few seconds. Today it spins for much longer, and the 09:00 refresh of every other tile that reads fct_order_lines is slow too.

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