A Developer is having a performance issue with a Snowflake query. The query receives up to 10 different values for one parameter and then performs an aggregation over the majority of a fact table. It then
joins against a smaller dimension table. This parameter value is selected by the different query users when they execute it during business hours. Both the fact and dimension tables are loaded with new data in an overnight import process.
On a Small or Medium-sized virtual warehouse, the query performs slowly. Performance is acceptable on a size Large or bigger warehouse. However, there is no budget to increase costs. The Developer
needs a recommendation that does not increase compute costs to run this query.
What should the Architect recommend?
Enabling the search optimization service on the table can improve the performance of queries that have selective filtering criteria, which seems to be the case here. This service optimizes the execution of queries by creating a persistent data structure called a search access path, which allows some micro-partitions to be skipped during the scanning process. This can significantly speed up query performance without increasing compute costs1.
Reference
* Snowflake Documentation on Search Optimization Service1.
Anissa
10 months agoDominga
10 months agoScot
10 months agoChandra
10 months agoGiuseppe
10 months agoBrett
11 months agoTommy
9 months agoAmmie
10 months agoJosefa
10 months agoRessie
11 months agoLaurel
9 months agoFlorinda
9 months agoXuan
9 months agoGail
9 months agoLorrie
10 months agoWillard
11 months agoAn
11 months agoCora
11 months agoAnnita
11 months ago