prompt

Database Indexing Advisor

Recommend optimal indexes and query optimization for specific database queries and access patterns.

Updated June 2026
The prompt
Optimize database performance for this query:

Query: {{sql_query}}
Table schema: {{schema}}
Access pattern: {{access_pattern}}
Current performance: {{performance_metrics}}

Recommend: index strategy, query rewrites, and monitoring queries. Explain index trade-offs.
Did it work? Rate this prompt

Variables

SQL query to optimize
Table schema and data types
How query is accessed (e.g., real-time, batch)
Current query execution time and row count

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