βοΈ Compute
This section explains how Snowflake's compute layer works, how costs are calculated and how to optimize warehouse configurations for both performance and budget.
π Overview
- π Overview β Introduction to Snowflakeβs compute model, credit-based pricing and architecture basics
- βοΈ Warehouses: Sizing and Threads β How to select the right warehouse size, configure threads and optimize for cost and performance
- ποΈ Clustering and Micro-partitions β How clustering improves query performance and when to use it
- π Other Serverless Features β Optional compute accelerators
β Practical Summary
- Snowflake compute is billed based on warehouse size and active runtime (credits per second)
- Start with the smallest warehouse (X-Small) and scale up until query duration stops halving
- Match the number of dbt threads to warehouse size. Avoid over-threading, which can cause query queuing and slower performance
- Set auto-suspend to 60 seconds or less to minimize idle compute costs
- Use clustering selectively on large, frequently filtered tables, and monitor reclustering credit usage closely
- Advanced serverless features like Query Acceleration and Multi-Cluster Warehouses can improve performance, but should be used cautiously and only when fully understood
- Leverage special SQL features to improve efficiency
- Continuously monitor performance and credit usage using in-house or third-party solutions