internalsGet Pro

Module 11 · Lesson 10 of 11Pro

Tuning slow warehouse queries

Level
Advanced
Topic
Data warehouses
Reading time
17 min

When you finish this page you can

  1. Split a slow query’s time into queued, compile and execution time, and say which part a bigger warehouse can change.
  2. Read a Snowflake query profile from its most expensive node down: rows in and out, partitions scanned, bytes spilled.
  3. Find an exploding join, fix the grain it joins at, and remove the DISTINCT that was hiding it.
  4. Decide when sizing up a warehouse is the right fix and when it only pays more for the same waste.

Builds on 3 lessons

Start with lesson 317 min
  1. Columnar execution and massively parallel processing17 min
  2. Partitioning, clustering and pruning16 min
  3. Warehouse costs: what you actually pay for18 min

Fourteen minutes for one year-end number

It’s Friday 31 December 2027, 15:10 IST. is an online store in India. Its orders flow from the store’s databases into a warehouse every night, and Daniel, who leads finance reporting, reads them there.

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