What problem does it solve?
It helps identify and fix database performance bottlenecks by reviewing schema design, analyzing slow queries, and optimizing indexing and migrations while preserving data integrity.
Core Features & Use Cases
- Query and plan optimization: Use EXPLAIN/EXPLAIN ANALYZE to pinpoint full scans, sorting/temp table issues, and N+1/unbounded query patterns, then propose targeted query rewrites and index improvements.
- Schema and index strategy review: Recommend what must be indexed (foreign keys, join/where/order columns) and what should not be over-indexed, including composite index left-prefix rules and covering-index considerations.
- Migration safety and scaling guidance: Provide migration risk analysis (locking, rollback, idempotency, FK behaviors), pagination strategy selection, connection pool guidance, monitoring metrics, and scaling options (replicas, caching, partitioning, sharding, archival).
Quick Start
Ask the AI to review your database schema and a slow query using EXPLAIN output, then produce an optimized indexing plan and a safe migration/action checklist based on realistic table sizes.