SQL Optimization Patterns

•
114
•

Optimizes database performance through advanced indexing strategies, query plan analysis, and efficient data retrieval patterns.

This Claude Code skill empowers developers to eliminate database bottlenecks by providing expert guidance on SQL query optimization and schema design. It offers structured patterns for analyzing EXPLAIN execution plans, implementing high-performance indexing strategies—including composite, partial, and covering indexes—and resolving common performance anti-patterns like N+1 queries and inefficient pagination. Whether you are scaling a growing dataset or debugging slow-running production queries, this skill provides the systematic implementation patterns needed to ensure your database layer remains responsive, scalable, and cost-effective.

主な機能

01High-performance pagination patterns using cursor-based methods
02Optimization for complex aggregations, subqueries, and window functions
03Expert analysis of EXPLAIN and execution plans for PostgreSQL and MySQL
04Advanced indexing strategies including GIN, BRIN, and covering indexes
05Techniques for resolving N+1 query anti-patterns and Cartesian products
06114 GitHub stars

ユースケース

01Debugging and fixing slow-running production database queries to improve UX
02Designing high-performance database schemas for data-intensive applications
03Reducing database server load and infrastructure costs through query tuning