Query Optimization

•
499
•

Optimizes SQL and NoSQL database queries through advanced indexing strategies, execution plan analysis, and performance tuning patterns.

The Query Optimization skill empowers Claude to act as a database performance engineer, providing expert guidance on reducing I/O, CPU, and memory usage across various database systems. It enables deep analysis of cost-based optimization (CBO) plans, helps design sophisticated indexing strategies like GIN, BRIN, or ESR-compliant compound indexes, and refactors inefficient SQL to utilize modern patterns like keyset pagination and window functions. Whether working with relational databases like PostgreSQL and MySQL or NoSQL systems like MongoDB and Cassandra, this skill ensures data layers remain scalable and performant.

Key Features

01Compound index design optimization following the Equality-Sort-Range (ESR) rule
02Tailored optimization strategies for NoSQL platforms including MongoDB, Cassandra, and DynamoDB
03Execution plan analysis using EXPLAIN and EXPLAIN ANALYZE across major database engines
04Detection and remediation of performance anti-patterns like N+1 queries and full table scans
05499 GitHub stars
06Advanced indexing recommendations including B-Tree, GIN, GiST, and covering indexes

Use Cases

01Refactoring legacy database interactions to improve throughput and reduce cloud infrastructure costs
02Troubleshooting and fixing slow-running queries by analyzing execution plans and statistics
03Designing high-performance schema and indexing strategies for new application features