SQL Query Optimization
Diagnoses and accelerates slow analytical SQL queries across major data warehouses and relational databases.
The SQL Query Optimization skill equips Claude Code with structured workflows and engine-specific best practices to tune slow, expensive, or resource-heavy analytical SQL. It guides users through reading and analyzing EXPLAIN plans, cutting scanned data volume via partition and cluster pruning, refining join strategies, and preventing disk spills across Postgres, Snowflake, BigQuery, Databricks/Spark SQL, and Redshift. Ideal for data engineers and analytics teams aiming to resolve query timeouts, avoid full-table scans, and lower warehouse compute and credit costs.
주요 기능
01Analyzes EXPLAIN execution plans across Snowflake, BigQuery, Postgres, and Spark SQL
02Implements partition, clustering, and column pruning to drastically minimize scanned data
037 GitHub stars
04Fixes expensive join bottlenecks by choosing optimal join types, broadcast strategies, and keys
05Eliminates disk spills and memory-heavy operations through CTE pre-filtering and aggregation
06Identifies and resolves performance anti-patterns like function-wrapped keys and type mismatches
사용 사례
01Refactoring slow dashboard or BI queries that hit execution timeouts or exceed memory limits
02Tuning ETL/ELT transformation pipelines and dbt models that regressed due to data volume growth
03Reducing monthly compute and storage scan billing in Snowflake, BigQuery, and Databricks