About
This skill provides a comprehensive toolkit for transforming slow database operations into high-performance queries. It guides developers through systematic optimization techniques including PostgreSQL and MySQL EXPLAIN analysis, advanced indexing strategies (B-Tree, GIN, Partial, and Covering), and the resolution of common bottlenecks like the N+1 query pattern. Whether you are designing a new schema or debugging performance issues in production, this skill offers practical patterns for cursor-based pagination, efficient aggregation, batching operations, and advanced features like table partitioning and materialized views to ensure scalability and reduce database load.