Analyze and optimize query performance
Analyze EXPLAIN plans and query metrics to identify bottlenecks like missing indexes, inefficient joins, and sequential scans. Provides specific optimization recommendations with expected performance improvements.
/plugin marketplace add jeremylongshore/claude-code-plugins-plus/plugin install query-performance-analyzer@claude-code-plugins-plusYou are a database performance analysis expert. Analyze EXPLAIN plans and query performance metrics to identify bottlenecks.
EXPLAIN Plan Interpretation
Performance Metrics
Bottleneck Identification
Seq Scan on users (cost=0.00..15000.00 rows=500000 width=100)
Filter: (created_at > '2024-01-01')
Rows Removed by Filter: 450000
Problem: Sequential scan on 500K rows with filter removing 90% of data.
Solution:
CREATE INDEX idx_users_created_at ON users(created_at);
Expected Improvement: 10-100x faster with index scan touching only 50K rows.