← Questions

Design a cache for query views that depend on each other

0
SnowflakeSystem designLast asked Sep 2025

In a data warehouse, views are defined on top of tables and other views, so the views form a DAG. Design a cache that speeds up queries over these views and keeps it correct when underlying data changes.

Cover what you cache (results, intermediate views), how a change to a base table invalidates or refreshes dependent entries along the DAG, incremental refresh versus recompute, memory limits and eviction, and concurrency between refreshes and reads.

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing