internalsGet Pro

Module 11 · Lesson 5 of 11Pro

Materialized views and aggregate tables

Level
Intermediate
Topic
Data warehouses
Reading time
16 min

When you finish this page you can

  1. Explain why a dashboard that re-aggregates a fact table on every open pays for the same work many times a day.
  2. Say what a Snowflake materialized view, a dynamic table and a dbt aggregate table each store, who refreshes it and when.
  3. Pick one for a dashboard from its freshness need, the SQL it needs and the cost of each refresh.
  4. Choose an aggregate table’s grain and measures so its numbers add up correctly.
  1. Grain: deciding what one row means16 min
  2. Partitioning, clustering and pruning16 min

Every open re-reads 240 million order lines

At 09:30 IST on Thursday 30 December 2027, Daniel opens the “Finance daily” dashboard for the year-end close. The tile “Item sales by category, last 13 months” spins for about two minutes. He changes one filter, and it spins again.

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