Question 190
A colleague claims, “Every slow statement needs a larger warehouse to improve compilation.” In context: A complex generated SQL statement spends most time compiling thousands of repeated expressions rather than executing its scans. Which architectural principle most directly challenges that claim?
Explanation
Correct Answer
Simplify generated SQL and reuse a stable query structure with measured profiling. Compilation time falls while the query remains functionally equivalent.
Incorrect Answers
Correct join cardinality rather than using DISTINCT as an unexplained bandage. Query compilation can dominate latency independently of data volume.
Correct relationship grain or preaggregate before the many-to-many join. Compilation time falls while the query remains functionally equivalent.
Address warehouse queueing or workload isolation rather than rewriting every query. Simplify generated SQL and reuse a stable query structure with measured profiling.