Study FAQ
How can I verify that a Snowflake performance change is worth its cost?
Also asked as 2
- What should I measure before and after tuning a Snowflake workload?
- How do I compare Snowflake optimization results when caches and concurrency change?
Answer
Measure a representative baseline, change one control, and repeat the same workload with comparable data, parameters, concurrency, and cache conditions. Keep the change if the latency and throughput improve enough to justify total cost and the workload still meets its correctness, freshness, and access requirements.
Capture query IDs, execution and queueing time, scan bytes and partitions, spill, warehouse size and state, and credits over the same window. If the experiment needs actual execution, run ALTER SESSION SET USE_CACHED_RESULT = FALSE in the test session and hold local warehouse cache conditions comparable. Record the warehouse and feature configuration so later comparisons can reproduce the test conditions.
Compare latency percentiles and throughput across the workload, plus total warehouse, serverless, storage, and maintenance costs introduced by the change. Give new storage structures time to finish setup and delayed usage records time to arrive. Define success and rollback criteria before running a lasting change, and assign an owner for any new spending alerts.
Exploring execution times · Query History and Query Profile · Persisted query results · Warehouse cache effects · Exploring Snowflake compute cost
Full explanation
Snowflake Query Performance and Cost Optimization
Study guide · COF-C03
Read the full explanation