Key Takeaways

  • In Snowflake, data warehouse performance tuning works through three levers: table clustering, warehouse sizing, and caching. Most slow queries trace back to table layout, yet most teams resize the warehouse first.
  • Since September 1, 2026, newly clustered tables use Optima Clustering, billed by the volume of data ingested rather than compute hours. Tables clustered before that date stay on Clustering Classic.
  • Optima Indexing, Metadata, and Planning run at no extra cost, but only on Gen2 and Adaptive warehouses. New Gen2 and multi-cluster warehouses also get the Query Acceleration Service by default.
  • The result cache needs identical query text and unchanged micro-partitions, so reclustering and BI tools that rewrite SQL both cause cache misses.
  • Suspending a warehouse drops its local cache. Snowflake recommends at least 10 minutes of auto-suspend for BI warehouses.

Introduction

Every step up in Snowflake warehouse size doubles the credits that warehouse bills per hour. That makes “just size it up” an expensive habit when the real cause sits in table layout or cache settings.

Sizing up works for a while, but the slow query often comes back because the cause was never compute. In our client engagements, the cause usually sits in how a table is clustered, how much work the caches absorb, or both.

This Insight shows how we approach data warehouse performance tuning in Snowflake. It covers diagnosis, the 2026 platform changes, clustering keys, warehouse size, and caching, and ends with how the three levers affect each other.

Why Snowflake Queries Slow Down as Your Data Volume Grows

Snowflake queries usually slow down for one of four reasons. They scan more micro-partitions than they need, run out of memory and spill to storage, wait in a queue for compute, or start on a cold cache. Each cause needs a different fix, and a bigger warehouse solves only some of them.

The first step in data warehouse performance tuning is finding which cause sits behind each slow workload, and what it costs the teams that depend on it.

What Slow Snowflake Performance Costs Your Reporting and Analytics Teams

A slow query rarely stays a data team problem.

AreaWhat slow performance does Teams affected
BI dashboards Morning reports load slowly or show stale figures Business users, leadership
Pipeline SLAs Batch jobs run past their window and delay downstream loads Data engineering
Regulatory and clinical reporting Risk, compliance, and clinical operations reports miss their review deadlines Compliance, risk, clinical operations
Credit spend Warehouses sized up to hide slow queries bill the higher rate all day CTO, FinOps
Engineering time Senior engineers chase slow queries instead of planned work Data engineering leads

Reading Query Profile for Pruning, Spilling, and Queuing Signals

Before changing any setting, our engineers baseline each workload in the Query Profile and the QUERY_HISTORY view. Four signals tell us most of what we need.

  • Partitions scanned against partitions total: reading most of a table to return a few rows means the layout does not match the filter.
  • Bytes spilled to remote storage: the query ran out of memory and local disk.
    Queued overload time: the query was ready, but the warehouse had no free compute.
  • Percentage scanned from cache: a low share on repeated dashboard queries means the warehouse cache keeps going cold.

Performance Explorer puts query, warehouse, and table health in one view, which helps us catch slowdowns that build over weeks. On Gen2 and Adaptive warehouses, Query Insights also shows when Snowflake Optima helped a query.

Which Symptom Points to Clustering, Sizing, or Caching

We use this table to decide which lever to pull first on every data warehouse performance tuning engagement. Your team can run through it on any Snowflake account.

SymptomWhere it shows Lever we pull first
Partitions scanned close to partitions total Query Profile, TableScan node Fix the filter, then clustering
Bytes spilled to remote storage Query Profile statistics Fix the join or filter, then size up if the spill remains
High queued overload time at peak hours QUERY_HISTORY, warehouse load history Multi-cluster, not a bigger size
Low percentage scanned from cache QUERY_HISTORY Auto-suspend interval and workload grouping
The same dashboard query runs in full every time Query Profile Result cache breakers in the BI SQL

Data Warehouse Performance Tuning in Snowflake: What Changed in 2026

Snowflake shipped three changes in 2026 that affect how tuning works, and most guides on the topic predate all of them.

Optima Clustering replaced Clustering Classic for new keys: newly clustered tables now use Optima Clustering, while older clustered tables stay on Clustering Classic. Billing follows uncompressed data ingested, not background compute hours. Keys can use up to 1 KB across all columns, where Clustering Classic reads only the first 5 bytes of each. In its October 2026 announcement, Snowflake reported that one internal table saw partitions scanned drop by more than 99%.

Optima tunes Gen2 and Adaptive warehouses on its own: Optima Indexing, Metadata, and Planning learn from query history. They add hidden indexes, pruning metadata, and better query plans at no additional cost.

QAS is on by default for new warehouses: since May 2026, new Gen2 and multi-cluster warehouses have the Query Acceleration Service turned on. Snowflake reports an average 42% improvement on eligible queries across 2025. QAS now also covers MERGE, UPDATE, and DELETE, and in Snowflake’s April 2026 testing, Dynamic Table refreshes finished in about 70% of their earlier time.

Snowflake Clustering Keys: When Your Tables Need One and Which Columns to Pick

Table layout is where data warehouse performance tuning pays back the most in our work, because a well-clustered table makes every query on it cheaper. It is also where teams spend credits they do not need to.

Signs a Large Table Needs a Clustering Key

A clustering key earns its cost on tables that are large, queried often, and changed rarely. Three signals tell us a table qualifies. Queries on it slow down as it grows, Query Profile shows most partitions scanned for selective filters, and SYSTEM$CLUSTERING_INFORMATION reports a high average depth. We run representative queries first to set a baseline.

Small tables, tables that change all day, and unique keys used for anything other than point lookups stay unclustered. On a star schema, fact tables usually cluster on the date dashboards filter by, and dimension tables rarely need a key.

Choosing Clustering Key Columns From Your Query Filters

Our engineers first fix filters that block pruning. A function around a filtered column, such as YEAR(order_date) = 2026, hides the column’s value range, while a range filter on the raw date does not.

Columns then come from real filter patterns in query history: filter columns first, then join columns. Keys stay at 3 or 4 columns, ordered from lowest to highest cardinality. For a column with too many distinct values, we cluster on an expression such as TO_DATE on a timestamp.

Clustering Keys vs Search Optimization vs Materialized Views

A clustering key is one of four table-level controls, and picking the wrong one wastes credits.

ControlQuery pattern it fits How it is billed
Clustering key Range and equality filters on a few columns of a large table Optima Clustering: per GB ingested
Search Optimization Point lookups on high-cardinality columns, such as a customer ID Serverless compute plus storage
Materialized view An expensive aggregation that runs on a schedule Serverless refresh plus storage
Query Acceleration Service A few scan-heavy outlier queries on a shared warehouse Serverless compute when applied

Keeping Automatic Clustering Costs Predictable

Before changing a key, we run SYSTEM$ESTIMATE_AUTOMATIC_CLUSTERING_COSTS. After rollout, the VERSION column in AUTOMATIC_CLUSTERING_HISTORY separates Clustering Classic spend from Optima Clustering spend.

On tables with heavy DML, such as targets of frequent MERGE jobs, reclustering can cost more than the pruning saves. On Clustering Classic tables, we pause it with ALTER TABLE … SUSPEND RECLUSTER. On Optima Clustering tables, suspending only defers a catch-up charge, so we drop the key or move point lookups to Search Optimization. In both cases, adding the clustering key to the MERGE join condition lets Snowflake prune the target table.

Client Challenge: A US Bank’s Transactions Table Scanning Nearly Every Micro-Partition

A US-based regional bank ran its daily risk and regulatory reports on a multi-year card transactions table, filtered by posting date and branch region. With no clustering key and loads arriving out of date order, every report query scanned most of the table’s partitions. The data team moved the warehouse up two sizes, from Medium to X-Large, to keep reports inside their morning window.

The Solution: Reclustering Around the Columns Risk Reports Filter On

We rewrote the report filters that wrapped the posting date in a function. Then we clustered the table on posting date and branch region, in that order. After the first reclustering pass, partitions scanned per report query fell from about 90% to under 10%. The warehouse went back to Medium, and reports now finish about 40 minutes inside the morning window.

Risk reports slowing down as your transaction tables grow?

Our Data warehouse development services team rebuilds table layouts, clustering keys, and pipelines so every query reads only the data it needs.

Snowflake Warehouse Sizing: Should You Size Up, Scale Out, or Fix the Query First?

Warehouse size is the lever teams reach for first, and the one we reach for last. Our full method is in our Snowflake warehouse sizing Insight; here is where it fits in the tuning order.

When a Bigger Warehouse Actually Fixes the Problem

Each size step doubles memory, local disk, and the credit rate. That helps when queries still spill to remote storage after the join and filter fixes, or when large joins need more parallel compute to finish on time.

It does little for queues. When many queries wait at the same hours, we scale out with a multi-cluster warehouse (Enterprise Edition or higher), which adds same-size clusters only while the queue lasts.

Testing Gen2 and Adaptive Warehouses Against Your Workloads

Gen2 warehouses bill at about 1.25 to 1.35 times the Gen1 rate, but they unlock Optima, and newly created ones come with QAS turned on. Whether that trade pays back depends on the workload, so we test it. The same production queries run on Gen1 and Gen2 with USE_CACHED_RESULT set to false, cold and then warm. We compare credits per run against the runtime target.

This side-by-side comparison is part of our Snowflake consulting services, so the move to Gen2 rests on your own query numbers rather than the platform default.

Snowflake Caching: Why Your Dashboards Miss the Result Cache and Warehouse Cache

Caching is the step in data warehouse performance tuning that protects the gains from the other two levers. The result cache sits in the cloud services layer and serves any warehouse. The warehouse cache lives on the compute nodes of one warehouse, so the way you separate workloads decides which teams share a warm cache.

What Stops Snowflake From Reusing Query Results

Snowflake returns a stored result only when several conditions hold. The query text must match exactly, including letter case and table aliases. The query cannot use functions that return a new value each run, such as RANDOM or UUID_STRING. The role needs access to every table, and the data and micro-partitions behind the result must be unchanged. Reclustering counts as a change, so a query can miss the cache even when no rows were edited.

Each reuse resets the result’s 24-hour retention period, up to 31 days from the first run.

Most dashboard cache misses we find start in the BI layer, not in Snowflake. Tools that add a timestamp literal or session variable to each query produce new SQL text every time. The fix usually sits in the dashboard’s query template or semantic layer, not in the pipelines underneath.

Auto-Suspend Settings That Keep Your Warehouse Cache Warm

Snowflake drops the warehouse cache when a warehouse suspends, so auto-suspend is a performance setting as well as a cost setting. For BI warehouses, Snowflake recommends at least 10 minutes, which is AUTO_SUSPEND = 600 because the value is in seconds.

Warehouses that only run scheduled tasks rarely reuse a warm cache, so we let them suspend quickly. Downsizing also drops part of the cache, so size changes stay away from dashboard refreshes. The cost side of these settings is in our Snowflake cost optimization Insight.

Client Challenge: A Hospital Network’s Operations Dashboard Running Cold on Every Load

A US hospital network’s bed capacity dashboard, used by unit managers through each shift, ran on a warehouse set to suspend after 60 seconds. Its BI tool also stamped the current time into every query. Managers opened the dashboard a few minutes apart, so each visit landed on a cold warehouse with new query text.

The Solution: Matching Auto-Suspend to Query Gaps and Fixing BI-Generated SQL

We mapped the gaps between dashboard queries from QUERY_HISTORY and set auto-suspend to cover them. Then we changed the query template to filter on a date parameter instead of the current timestamp. Result cache hits on repeat views rose from near 0% to about 70%, and p95 load time dropped from 14 to 3 seconds.

Clustering vs Warehouse Sizing vs Caching: Trade-Offs to Plan For

Each lever changes the other two, which is why data warehouse performance tuning works better as one plan than as three fixes. These are the side effects we plan for on every account.

Change we makeSide effect How we handle it Who owns it
Add or change a clustering keyResult cache misses while Snowflake reclustersMake key changes outside peak dashboard hoursData engineering
Downsize a warehousePart of the warehouse cache is droppedTime downsizes away from report refreshesPlatform team
Shorten auto-suspendFewer idle credits, colder cache on resumeMatch the interval to real query gapsPlatform team
Move a warehouse to Gen2Higher credit rate, Optima features turn on, QAS stays as it wasBenchmark first, convert while suspendedPlatform team
Cluster a heavily updated tableRecurring reclustering spendSuspend on Clustering Classic; drop the key or use Search Optimization on OptimaData engineering

Our engineers review these settings after a Gen2 move, a large jump in data volume, or a new BI tool, since any of the three can undo earlier tuning.

Conclusion

Most Snowflake slowdowns we see come from a table layout, cache setting, or warehouse size that was right when someone chose it, before data grew and defaults changed. Good data warehouse performance tuning starts by finding which lever is out of date, not with a bigger warehouse.

If you lead a data team on Snowflake, five questions will show where you stand:

  • Which dashboards miss their p95 load target, and do their queries scan most of a table’s partitions?
  • Which queries still spill to remote storage after their filters and joins are fixed?
  • How much queue time do your warehouses show at peak hours?
  • What share of repeated dashboard queries is served from cache?
  • How many credits did automatic clustering use last month, and on which tables?

That is how we approach Snowflake tuning at Bacancy Technology. Our data warehouse consulting services team can review your clustering, sizing, and cache setup and give you a ranked plan of what to change first.

Frequently Asked Questions (FAQs)

Often, yes. Optima Indexing and Metadata improve pruning on a best-effort basis, and only on Gen2 and Adaptive warehouses. For large tables with known filter patterns, a clustering key still gives predictable pruning. Since September 2026, new keys run on Optima Clustering, billed by data ingested.

Snowflake keeps a query result for 24 hours. Each reuse resets that period, up to a maximum of 31 days from the first run. After that, Snowflake purges the result, and the next run generates and stores a new one.

The query text must match exactly, the data and micro-partitions must be unchanged, and the role must have access to the tables. Dashboards often miss because the BI tool adds a timestamp or session value to each query, which creates new SQL text every time.

It depends on how many workloads need work and what slows them down. We start by assessing query history, warehouse load, and clustering health, then share a timeline per change. Setting changes are usually quick, while table rebuilds and BI query fixes take longer.

Supan Shah

Supan Shah

Lead Data Engineer at Bacancy

Data engineering expert building scalable, reliable, and insight-driven data pipelines and cloud solutions.

CONNECT WITH THE AUTHOR
SUBSCRIBE NEWSLETTER