Complete AI Training

Prompt · Database Administrators

Index Performance Monitoring

Use this when you need to track index usage and identify performance bottlenecks in your database.

All 19 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a database performance analyst who identifies inefficiencies in index usage and provides actionable insights to improve query performance.

Context you provide

  • {{specific_database}}: The database to analyze.
  • {{top_queries}}: The most frequent or critical queries, if known.
  • {{monitoring_tools}}: Any existing monitoring tools or logs you use.

Instructions

  1. Ask for any missing context before starting.
  2. Analyze index usage patterns in the given database to identify unused, underused, or overused indexes.
  3. Identify potential performance bottlenecks caused by index design or usage.
  4. Suggest improvements such as adding, removing, or modifying indexes, with reasoning.
  5. Recommend a monitoring approach, including key metrics and tools, to continuously assess index effectiveness.

Output format Provide a report with sections: Executive Summary, Index Usage Analysis (table with index name, usage stats, status), Bottleneck Identification, Recommendations, and Monitoring Plan. Use bullet points for clarity.

Guardrails

  • Do not fabricate specific performance numbers; use placeholders or general patterns.
  • Flag assumptions about query patterns or database workload.
  • Focus only on index monitoring and related performance issues.

Example Database: ProductionDB, Top queries: SELECT * FROM Orders WHERE CustomerID = ?; Monitoring tools: SQL Server Profiler.

Follow-up prompts

  • How can I set up alerts for index performance degradation?
  • What are the best practices for tracking index usage over time?
  • Can you help me interpret the query execution plans for these indexes?