| # | Finding | Object | Est. saving / mo |
|---|---|---|---|
| 1 | high Warehouse never suspends | COMPUTE_WH | $2,070 |
| 2 | high Auto-suspend set too high | TRANSFORM_WH | $900 |
| 3 | high Warehouse looks oversized | REPORTING_WH | $549 |
| 4 | medium Auto-suspend set too high | REPORTING_WH | $480 |
| 5 | medium Paying for cloud services above the free 10 percent | ACCOUNT | $370 |
| 6 | medium Identical query re-runs without hitting the result cache | REPORTING_WH / 9f2c1a7be04d | $202 |
| 7 | medium Time Travel and Fail-safe bigger than the table | "ANALYTICS"."STAGING"."EVENTS_RAW" | $144 |
| 8 | medium Auto-suspend set too high | ML_WH | $120 |
| 9 | low Identical query re-runs without hitting the result cache | TRANSFORM_WH / 4b0e77d1c9aa | $96.00 |
| 10 | low Large table not read in 90 days | "ARCHIVE"."LEGACY"."WEB_EVENTS_2022" | $73.60 |
| 11 | low Time Travel and Fail-safe bigger than the table | "RAW"."SALESFORCE"."OPPORTUNITY_HISTORY" | $27.40 |
| 12 | low Large table not read in 90 days | "ANALYTICS"."SCRATCH"."TMP_BACKFILL_JAN" | $14.60 |
| 13 | medium Queries spilling to remote storage | TRANSFORM_WH | risk / perf |
| 14 | medium Warehouses with no spending cap | TRANSFORM_WH, COMPUTE_WH, ML_WH, LOADING_WH | risk / perf |
| 15 | low Queries waiting in queue | ML_WH | risk / perf |
| 16 | info Expensive automatic clustering | "ANALYTICS"."MARTS"."FCT_ORDERS" | risk / perf |
Why: AUTO_SUSPEND is off and the warehouse was billed in 690 hourly slots, nearly around the clock.
Fix: Enable auto-suspend so the warehouse stops billing when idle. Savings assume roughly half of its running hours are idle. Snowflake docs
ALTER WAREHOUSE "COMPUTE_WH" SET AUTO_SUSPEND = 60;
Why: AUTO_SUSPEND = 600s on a Large warehouse that resumed ~250 times. Each resume burns up to 540s of idle time before suspending.
Fix: Lower AUTO_SUSPEND to 60s. Keep it higher only for BI warehouses that depend on a warm local cache. Snowflake docs
ALTER WAREHOUSE "TRANSFORM_WH" SET AUTO_SUSPEND = 60;
Why: 48,000 queries on a Medium warehouse: p95 runtime 3.2s, p95 scan 180 MB, no spilling.
Fix: Try one size down (SMALL) for a week and compare runtimes. Small queries rarely get slower, so cost drops close to half; the estimate assumes 30 percent to stay conservative. Snowflake docs
ALTER WAREHOUSE "REPORTING_WH" SET WAREHOUSE_SIZE = 'SMALL';
Why: AUTO_SUSPEND = 300s on a Medium warehouse that resumed ~600 times. Each resume burns up to 240s of idle time before suspending.
Fix: Lower AUTO_SUSPEND to 60s. Keep it higher only for BI warehouses that depend on a warm local cache. Snowflake docs
ALTER WAREHOUSE "REPORTING_WH" SET AUTO_SUSPEND = 60;
Why: Cloud services used 690.0 credits (16% of compute); 247.0 credits were billed after the daily adjustment.
Fix: Usually caused by very frequent tiny queries, heavy SHOW / metadata calls from tools, or complex compilation. Find the top query types by CREDITS_USED_CLOUD_SERVICES and batch or cache them. Snowflake docs
SELECT query_type, warehouse_name, COUNT(*) AS n,
SUM(credits_used_cloud_services) AS cs_credits
FROM SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY
WHERE start_time >= DATEADD('day', -30, CURRENT_TIMESTAMP())
GROUP BY 1, 2 ORDER BY cs_credits DESC LIMIT 20;
Why: Ran 8,640 times with identical text and still scanned data each time. Sample: SELECT region, SUM(amount) FROM analytics.marts.fct_orders WHERE order_ts >= DATEADD(day, -7, CURRENT_TIMESTAMP()) GROUP BY 1
Fix: Common causes: CURRENT_TIMESTAMP() or RANDOM() in the SQL, USE_CACHED_RESULT = FALSE on the session, or the source table changes between runs. Remove non-deterministic functions, or materialize the result (dynamic table or scheduled table) for dashboards. Snowflake docs
SHOW PARAMETERS LIKE 'USE_CACHED_RESULT' IN ACCOUNT;
Why: Active 800 GB, Time Travel 2,150 GB, Fail-safe 4,710 GB. A high-churn table (full reloads or heavy updates) keeps paying for every old version.
Fix: If the table can be rebuilt from source, make it TRANSIENT (no Fail-safe) and cut retention to 0 or 1 day. For dbt models use `+transient: true`. Snowflake docs
ALTER TABLE "ANALYTICS"."STAGING"."EVENTS_RAW" SET DATA_RETENTION_TIME_IN_DAYS = 1;
Why: AUTO_SUSPEND = 120s on a X-Large warehouse that resumed ~150 times. Each resume burns up to 60s of idle time before suspending.
Fix: Lower AUTO_SUSPEND to 60s. Keep it higher only for BI warehouses that depend on a warm local cache. Snowflake docs
ALTER WAREHOUSE "ML_WH" SET AUTO_SUSPEND = 60;
Why: Ran 720 times with identical text and still scanned data each time. Sample: SELECT COUNT(*) FROM raw.events.page_views WHERE event_date = CURRENT_DATE()
Fix: Common causes: CURRENT_TIMESTAMP() or RANDOM() in the SQL, USE_CACHED_RESULT = FALSE on the session, or the source table changes between runs. Remove non-deterministic functions, or materialize the result (dynamic table or scheduled table) for dashboards. Snowflake docs
SHOW PARAMETERS LIKE 'USE_CACHED_RESULT' IN ACCOUNT;
Why: 3,277 GB of active storage with no reads in ACCESS_HISTORY for 90 days.
Fix: Confirm with the owner, then drop it or unload it to cheap object storage. The DROP is commented out on purpose. Snowflake docs
-- DROP TABLE "ARCHIVE"."LEGACY"."WEB_EVENTS_2022";
Why: Active 120 GB, Time Travel 400 GB, Fail-safe 900 GB. A high-churn table (full reloads or heavy updates) keeps paying for every old version.
Fix: If the table can be rebuilt from source, make it TRANSIENT (no Fail-safe) and cut retention to 0 or 1 day. For dbt models use `+transient: true`. Snowflake docs
ALTER TABLE "RAW"."SALESFORCE"."OPPORTUNITY_HISTORY" SET DATA_RETENTION_TIME_IN_DAYS = 1;
Why: 650 GB of active storage with no reads in ACCESS_HISTORY for 90 days.
Fix: Confirm with the owner, then drop it or unload it to cheap object storage. The DROP is commented out on purpose. Snowflake docs
-- DROP TABLE "ANALYTICS"."SCRATCH"."TMP_BACKFILL_JAN";
Why: 240 GB spilled to remote storage. Remote spilling can make queries many times slower, and slow queries cost credits.
Fix: Find the spilling queries (BYTES_SPILLED_TO_REMOTE_STORAGE in QUERY_HISTORY). Reduce the data they process, or move just those jobs to a larger warehouse. Snowflake docs
SELECT query_id, LEFT(query_text, 200), bytes_spilled_to_remote_storage
FROM SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY
WHERE warehouse_name = 'TRANSFORM_WH' AND bytes_spilled_to_remote_storage > 0
ORDER BY bytes_spilled_to_remote_storage DESC LIMIT 20;
Why: 4 warehouse(s) spending $11,460/month have no resource monitor. A runaway query or a forgotten loop has no ceiling.
Fix: Add a monthly monitor per warehouse at about 1.5x normal usage: notify at 80 percent, suspend at 100 percent. Requires ACCOUNTADMIN. Snowflake docs
CREATE RESOURCE MONITOR "FW_TRANSFORM_WH_MONTHLY" WITH CREDIT_QUOTA = 2180 FREQUENCY = MONTHLY START_TIMESTAMP = IMMEDIATELY
TRIGGERS ON 80 PERCENT DO NOTIFY ON 100 PERCENT DO SUSPEND ON 120 PERCENT DO SUSPEND_IMMEDIATE;
ALTER WAREHOUSE "TRANSFORM_WH" SET RESOURCE_MONITOR = "FW_TRANSFORM_WH_MONTHLY";
CREATE RESOURCE MONITOR "FW_COMPUTE_WH_MONTHLY" WITH CREDIT_QUOTA = 2070 FREQUENCY = MONTHLY START_TIMESTAMP = IMMEDIATELY
TRIGGERS ON 80 PERCENT DO NOTIFY ON 100 PERCENT DO SUSPEND ON 120 PERCENT DO SUSPEND_IMMEDIATE;
ALTER WAREHOUSE "COMPUTE_WH" SET RESOURCE_MONITOR = "FW_COMPUTE_WH_MONTHLY";
CREATE RESOURCE MONITOR "FW_ML_WH_MONTHLY" WITH CREDIT_QUOTA = 1350 FREQUENCY = MONTHLY START_TIMESTAMP = IMMEDIATELY
TRIGGERS ON 80 PERCENT DO NOTIFY ON 100 PERCENT DO SUSPEND ON 120 PERCENT DO SUSPEND_IMMEDIATE;
ALTER WAREHOUSE "ML_WH" SET RESOURCE_MONITOR = "FW_ML_WH_MONTHLY";
CREATE RESOURCE MONITOR "FW_LOADING_WH_MONTHLY" WITH CREDIT_QUOTA = 140 FREQUENCY = MONTHLY START_TIMESTAMP = IMMEDIATELY
TRIGGERS ON 80 PERCENT DO NOTIFY ON 100 PERCENT DO SUSPEND ON 120 PERCENT DO SUSPEND_IMMEDIATE;
ALTER WAREHOUSE "LOADING_WH" SET RESOURCE_MONITOR = "FW_LOADING_WH_MONTHLY";
Why: Queries spent 40.0h queued vs 200.0h executing (20%).
Fix: Concurrency, not size, is the bottleneck. Use a multi-cluster warehouse (Enterprise) with a low MAX_CLUSTER_COUNT, or split workloads onto separate warehouses. Upsizing would overpay. Snowflake docs
ALTER WAREHOUSE "ML_WH" SET MIN_CLUSTER_COUNT = 1 MAX_CLUSTER_COUNT = 3 SCALING_POLICY = 'ECONOMY';
Why: Automatic clustering costs about $540/month on this table.
Fix: Check that queries actually filter on the clustering key and that the table is not rewritten constantly. If pruning did not improve, suspend reclustering or pick a lower-cardinality key. Snowflake docs
SELECT SYSTEM$CLUSTERING_INFORMATION('"ANALYTICS"."MARTS"."FCT_ORDERS"');
-- ALTER TABLE "ANALYTICS"."MARTS"."FCT_ORDERS" SUSPEND RECLUSTER;
pip install frostwatch && frostwatch demo · github.com/arunrajiah/frostwatch