database-performance
Installation
SKILL.md
Database Performance
Workflow
- Capture the slow query, parameters, row counts, and expected access pattern.
- Inspect query plan and current indexes.
- Identify table scans, bad joins, sort costs, lock waits, or missing pagination.
- Add or change indexes only for real query patterns.
- Consider migration cost and production data size.
Rules
- Avoid indexing every column.
- Check write overhead and uniqueness semantics.
- Prefer query rewrites when they are simpler and safer than new indexes.