prompt

Database Index Strategy Planner

Recommend optimal index placement, covering indexes, and partitioning strategies based on query patterns and data volume.

Updated June 2026
The prompt
Design an optimal indexing strategy for this database:

{{schema_and_queries}}

Data volume and growth: {{volume_metrics}}

Create:
1. Index recommendations with column selection rationale
2. Covering index opportunities for top queries
3. Composite index ordering (filter, sort, retrieve)
4. Partitioning strategy for table size and query isolation
5. Index maintenance overhead estimates
6. Hot spot analysis and index conflict resolution
7. Execution plan before/after comparisons
8. Monitoring metrics for index effectiveness

Provide CREATE INDEX statements and partitioning DDL.
Did it work? Rate this prompt

Variables

Database Schema & Query Workload
Data Volume, Growth Rate & SLA

Details

Author

AI Khazna

License

Security

Type

prompt

Related assets

More curated picks in Development & Code.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Development & Code