SQL Optimization Patterns

•
23k
•

Optimizes SQL queries and database schemas through advanced indexing strategies and systematic execution plan analysis.

This skill empowers developers to transform sluggish database operations into high-performance queries by applying industry-standard optimization patterns. It provides Claude with specialized knowledge in interpreting PostgreSQL EXPLAIN plans, implementing sophisticated indexing (B-Tree, GIN, GiST), eliminating N+1 query anti-patterns, and managing large-scale data through partitioning and materialized views. Whether you're debugging production bottlenecks or architecting a new schema, this skill ensures your database layer remains scalable, cost-effective, and responsive by focusing on execution efficiency and reduced resource consumption.

주요 기능

01High-performance pagination patterns using cursor-based navigation
0223,194 GitHub stars
03Remediation of N+1 query anti-patterns through JOINs and batch loading techniques
04In-depth analysis of EXPLAIN and EXPLAIN ANALYZE query plans to identify bottlenecks
05Database architecture guidance for partitioning, materialized views, and subquery optimization
06Implementation of advanced indexing strategies including composite, partial, and covering indexes

사용 사례

01Detecting and fixing inefficient query patterns in application code during the development cycle
02Designing high-performance database schemas for applications with rapidly growing datasets
03Refactoring slow-running production queries to reduce latency and database server load