概要
This skill empowers developers to transform slow database queries into high-performance operations by providing systematic guidance on SQL optimization. It covers deep analysis of execution plans using EXPLAIN, implementation of advanced indexing strategies like B-Tree and GIN, and the resolution of common performance bottlenecks like N+1 queries and inefficient offset-based pagination. Whether you are debugging a lagging production query or designing a scalable schema from scratch, this skill offers the patterns and best practices needed to minimize database load, reduce costs, and dramatically improve application response times.