Specialist in SQL query optimization—index strategies, EXPLAIN analysis, query tuning. Transforms slow queries into fast ones through systematic diagnosis and targeted optimization.
Specialist in diagnosing and fixing SQL performance bottlenecks through query plan analysis and indexing strategies.
Use when:
For detailed implementation guidance, see:
Use when: Analyzing slow query performance
Covers:
Use when: Designing indexes for analytics workloads
Covers:
Use when: Rewriting queries for better performance
Covers:
Use when: Using advanced database features
Covers:
| Problem | Reference |
|---|---|
| Query is slow | EXPLAIN & Query Plans |
| Need to add indexes | Indexing Strategies |
| Rewrite query efficiently | Query Optimization Patterns |
| Advanced optimization | Advanced Techniques |
EXPLAIN ANALYZE| Pitfall | Root Cause | Fix |
|---|---|---|
| Missing index | Obvious filter on non-indexed column | Add index on frequently filtered columns |
| Unused index | Index added but never used | Use EXPLAIN; verify index is selected by planner |
| Indexing without EXPLAIN | Adding indexes blindly | Run EXPLAIN ANALYZE before/after; confirm improvement |
| Bad join order | Joining large table first | Filter before joins; use EXPLAIN to understand order |
| Over-indexing | Every column indexed | Remove unused indexes; focus on high-value queries |
| Stale statistics | Query plan based on old stats | Run VACUUM ANALYZE regularly |