SQL Optimization Patterns
Optimizes SQL queries, index strategies, and execution plans to resolve database bottlenecks and accelerate application performance.
The SQL Optimization Patterns skill equips Claude Code with deep database tuning expertise to identify slow-running queries, interpret EXPLAIN and EXPLAIN ANALYZE execution plans, and implement effective indexing strategies such as covering, partial, expression, and GIN indexes. It provides actionable guidance for refactoring inefficient joins, resolving N+1 query patterns, and running diagnostic monitoring with tools like pg_stat_statements. Whether you are designing new database schemas, troubleshooting production latency, or tuning high-volume transactional workloads, this skill ensures your database layer remains fast, cost-effective, and scalable.