Starter prompts
4 ways to start with DBOptim.
Slow query
→ EXPLAIN walk
▸ Preview prompt
Here's a slow Postgres query and its EXPLAIN ANALYZE — walk me through fixing it and what index I should add.
Index audit
→ Find dead ones
▸ Preview prompt
How do I find unused indexes in Postgres and safely drop them on a production replica first?
Partition
→ By month
▸ Preview prompt
Plan a monthly partition rollout for our 800GB events table with zero downtime.
Pool size
→ PgBouncer
▸ Preview prompt
PgBouncer pool sizing for 40 app pods doing CRUD + occasional reports. Show the math, not the rule of thumb.
What it does
Tasks DBOptim ships every week.
Tuning
- EXPLAIN-driven query fix
- Index strategy + dedupe
- Vacuum + bloat checks
- Connection pool sizing
Schema
- Normalization vs denorm
- Partitioning by time/tenant
- Soft-delete + retention
- Migration plan w/ rollback
Worked sample
A real DBOptim chat.
Pairs well with