Database Query Optimization

•
6
•

Optimizes database performance through efficient query patterns, advanced indexing strategies, and comprehensive performance analysis.

This skill equips Claude with specialized knowledge to diagnose and resolve database performance bottlenecks. It provides standardized patterns for interpreting execution plans via EXPLAIN ANALYZE, implementing sophisticated indexing strategies like partial and covering indexes, and refactoring inefficient ORM code to eliminate N+1 query issues. By applying these patterns, developers can ensure their applications handle large datasets efficiently through optimized pagination, bulk operations, and caching strategies, ultimately reducing latency and infrastructure costs.

Características Principales

01High-performance pagination strategies using cursor and keyset-based methods
026 GitHub stars
03Query plan analysis and performance bottleneck identification using EXPLAIN ANALYZE
04Implementation of caching layers and materialized views for expensive aggregations
05Advanced indexing patterns including composite, partial, and covering indexes
06ORM optimization techniques for Prisma and SQL to prevent N+1 query patterns

Casos de Uso

01Refactoring slow-running legacy SQL queries to reduce execution time and resource usage
02Optimizing backend API performance by batching database operations and implementing Redis caching
03Designing optimal indexing schemas for new database tables based on expected access patterns