Match an optimization service to the observed workload
Choose a performance investment from measured query shape, frequency and maintenance cost.
Match an optimization service to the observed workload
Work through the decision
A point lookup on a huge table is rare but latency-sensitive. A different dashboard repeatedly computes the same eligible aggregation. A third query has an unusually large scan. Which evidence makes each optimization worth testing?
Check your reasoning
Examine search optimization for supported selective lookups. Evaluate a materialized view for a repeated eligible computation. Look at Query Acceleration Service eligibility for eligible portions of large queries. For repeated range predicates with poor pruning, inspect clustering quality and the ongoing maintenance cost of a key.
Compare the choices
- Search optimization service
- Create and maintain a search access path for supported selective predicates on large tables.
- Clustering key
- Organize related values to improve pruning on recurring filter patterns when the workload justifies maintenance.
- Materialized view
- Precompute supported results and maintain them as underlying data changes. Compare recurring read savings with write-time costs.
- Query Acceleration Service
- Offload eligible portions of warehouse query processing to additional compute. Verify eligibility and measured benefit.
- SQL rewrite
- Correct excessive work in the statement before paying to accelerate an inefficient or incorrect operation.
Test the decision
A table updated every minute may impose substantial maintenance for a materialized view even when reads improve. Record representative latency, credit consumption and update workload before and after the change. Use representative cold and warm runs.
Practice the guide skills
- Check Query Acceleration eligibility and estimate the benefit for a representative outlier. Watch 2:38:26
- Test search optimization against a supported selective lookup and its maintenance cost. Watch 2:40:20
- Evaluate clustering overlap for a repeated range predicate before adopting a key. Watch 39:00
- Confirm that a frequently reused expression is eligible for a materialized view and compare ongoing refresh cost. Watch 2:42:11
Official objectives for this lesson
Related lesson · Optimize the measured bottleneck
Match an optimization service to the observed workload quiz
Answer 3 questions. Check each answer for an explanation.