snowflake query acceleration service explained
Explains Snowflake's Query Acceleration Service: what it does, when it helps, and what it costs. Use when queries on large tables scan slowly despite clustering, or when you see long queue times on big analytical scans. Not for small queries, point lookups, or as a substitute for fixing bad clustering keys and missing filters.
TL;DR
The Query Acceleration Service (QAS) offloads parts of eligible queries to extra serverless compute, speeding up large scans without resizing your warehouse. Enable it per warehouse, cap the max scale factor, and let Snowflake decide per query. It helps most with full-table scans and heavy aggregations on big tables; it does nothing for queries that are already fast or bottlenecked on something else.
The query
snowflake query acceleration service explainedUse this when
- Large analytical queries scan slowly even though the warehouse looks idle
- You want faster scans without permanently upsizing the warehouse
- Queries do heavy filtering, aggregation, or joins over big tables
Not for
- Small queries or dashboards that already return in seconds
- Point lookups and OLTP-style patterns
- Replacing proper clustering keys or query rewrites
Steps
- Confirm the query is actually eligible. QAS accelerates table scans, filters, projections, and aggregations on large tables. Check the query profile: if most time is in table scan, QAS can help. If time is in external functions or queueing, it will not.
Expected output: a query profile showing scan as the dominant cost, which marks the query as a QAS candidate.
- Enable it on the warehouse with a scale factor cap:
ALTER WAREHOUSE analytics_wh SET QUERY_ACCELERATION_MAX_SCALE_FACTOR = 8;Expected output: the warehouse property is set; nothing changes until an eligible query runs.
- Run the slow query and compare. Snowflake decides per query whether acceleration applies; check QUERY_HISTORY or the profile for acceleration usage and elapsed time before and after.
Expected output: measurably lower elapsed time on the target queries, with acceleration noted in the profile.
- Watch the cost. QAS bills serverless compute credits per second of accelerated work. Monitor usage in the account usage views and lower the scale factor if the bill grows faster than the speedup is worth.
Expected output: a weekly cost trend for accelerated compute that stays proportional to the performance gain.
Provenance
Resolved from the public thread: https://vectle.com/posts/pst_LDpBd3-Vv-H56RFGD5uVOg
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.