← All case files
// case file
CASE / 11
Snowflake Cost
SNOSQL
CREDITS / WEEKCASE 11CREDIT AND QUERY COST
● Shippedcase file · 11 / 16
Case
#11
Where
Yosi Health
Categories
Snowflake · Optimization
Read
~2 min
/11

Snowflake Cost & Query Optimization

SnowflakeSQL
Workload segmentation (ETL / BI / ad hoc), right-sizing, auto-suspend policies, full-scan reduction. Long-term compute cost predictability.
+
The Problem

Snowflake credit consumption was growing faster than usage justified. A single oversized warehouse was running every workload, ad-hoc queries were doing full table scans, and no one had visibility into which queries were the actual cost drivers.

The Approach

Mined query history and warehouse metering to attribute cost by workload. Split into purpose-sized warehouses (small for BI, medium for ETL, X-small for ad hoc), enforced auto-suspend, and rewrote the top expensive queries to use clustering and pruning. Built an internal cost dashboard for ongoing visibility.

Technical Details
  • Query history mining & cost attribution
  • Workload segmentation across multiple warehouses
  • Auto-suspend tuning per workload pattern
  • Clustering keys and pruning for top queries
  • Ongoing cost monitoring dashboard
↓
Credit burn
↑
Predictability
3
Workload tiers