Study FAQ
How should I set Snowflake warehouse auto-suspend and auto-resume?
Also asked as 2
- How can I reduce idle Snowflake warehouse credits without constant restarts?
- What idle interval should I choose for Snowflake warehouse auto-suspend?
Answer
Enable auto-resume if a standard Snowflake warehouse should start when a new statement needs its compute. Set auto-suspend from the typical gap between requests and the response-time target. Intermittent development usually benefits from a short idle interval. A dashboard refreshed every few minutes may benefit from keeping the warehouse warm between refreshes if the measured speedup justifies idle credits.
For a standard virtual warehouse, compute is metered per second with a 60-second minimum each time compute resources start. Suspending clears its local disk cache and preserves the underlying table data. Frequent cycles can therefore add startup delay, repeat the minimum charge, and turn warm scans into cold scans.
Check warehouse activity over a representative time window. Compare idle credits, the number of resumes, and query latency before and after changing the interval. For pipelines, use actual arrival and batch cadence to decide whether the idle period is long enough to justify suspension.
Warehouse considerations and credit usage · Optimizing the warehouse cache · Virtual warehouse settings
Full explanation
Virtual Warehouses: Sizing, Scaling, Concurrency, and Cost
Study guide · COF-C03
Read the full explanation