About
The SQL Optimization Patterns skill empowers developers to transform slow database queries into high-performance operations using systematic analysis and industry-standard patterns. It provides expert guidance on interpreting EXPLAIN query plans, selecting appropriate index types like B-Tree and GIN, and resolving common performance bottlenecks like the N+1 query problem and slow offset-based pagination. Whether you are designing a new schema or troubleshooting a production database under heavy load, this skill offers the technical patterns needed to reduce latency, decrease resource consumption, and ensure long-term scalability.