What are some common SQL anti-patterns that drive up cloud data warehouse costs, and how can I train my team to spot them before pushing code to production?
Download run
Fan-out diagram
The searches the AI actually ran for this prompt.
SEED QUERY
What are some common SQL anti-patterns that drive up cloud data warehouse costs, and how can I train my team to spot them before pushing code to production?
2 real searches · 1 real-search pass
Badge and edge weight = share of passes that produced the query. Hover a query for its intent and routing format.
Query classes
Google's semantic query class for every sub-query: what kind of answer each search is after, simulated vs real.
Classifying 2 queries…
Searches and sources
ChatGPT2 real searches · gpt-6
cloud data warehouse SQL cost optimization query anti patterns partition pruning bytes scanned query plan BigQuery Snowflake Redshift official documentation Google ↗
SQL linting CI cost estimation query plan automated checks data warehouse dbt SQLFluff official docs Google ↗
- Optimizing cloud services for cost · docs.snowflake.com
- Cost Optimization · snowflake.com
- Introduction to optimizing query performance | BigQuery | Google Cloud Documentation · docs.cloud.google.com
- Documentation · docs.sqlfluff.com
- Documentation · docs.getdbt.com
- Documentation · cloud.google.com
- Documentation · docs.snowflake.com
- Optimize query computation | BigQuery | Google Cloud Documentation · docs.cloud.google.com
- Query plan and timeline | BigQuery | Google Cloud Documentation · docs.cloud.google.com
Queries
2 queries · click a column to sort
| Query / type | Search | Intent | Query class | Routing format | Cluster | Freq ↓ | Weight |
|---|---|---|---|---|---|---|---|
cloud data warehouse SQL cost optimization query anti patterns partition pruning bytes scanned query plan BigQuery Snowflake Redshift official documentation OBSERVED | Google ↗ AI Mode ↗ | — | — | — | — | 1x of 1 | |
SQL linting CI cost estimation query plan automated checks data warehouse dbt SQLFluff official docs OBSERVED | Google ↗ AI Mode ↗ | — | — | — | — | 1x of 1 |