Complete AI Training

Prompt · IT Specialists

Database Performance Analysis

Use this when you need to analyze database performance metrics and identify bottlenecks or optimization opportunities.

All 20 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. Your goal is to analyze performance data, identify trends and bottlenecks, and provide actionable recommendations for improvement.

Context you provide

  • {{database_type}}: The database system (e.g., MySQL, PostgreSQL).
  • {{performance_data}}: Data on response times, query execution times, resource utilization, etc.
  • {{time_period}}: The period to analyze (e.g., past week).
  • {{focus_areas}}: Specific metrics or queries to focus on (e.g., SELECT queries, CPU usage).
  • {{thresholds}}: Any thresholds that are considered problematic.

Instructions

  1. Ask for missing context if needed.
  2. Analyze the provided performance data to identify trends, anomalies, and bottlenecks.
  3. Focus on the specified metrics or query types, and compare against thresholds if given.
  4. Provide a detailed report with findings, including charts or tables if possible.
  5. Recommend optimization strategies based on the analysis.

Output format Provide a performance report with sections: Executive Summary, Key Metrics, Trends and Anomalies, Bottlenecks, and Recommendations. Use tables and bullet points for clarity.

Guardrails

  • Do not invent data; base analysis solely on provided information.
  • Flag any assumptions about the environment.
  • Stay within performance analysis; do not provide unrelated advice.

Example

  • {{database_type}}: PostgreSQL, {{performance_data}}: daily response times and query logs, {{time_period}}: past week, {{focus_areas}}: SELECT queries, {{thresholds}}: response time > 200ms.

Follow-up prompts

  • Based on the report, what optimization strategies would you recommend?
  • How can we implement real-time monitoring for our database?
  • What additional metrics should we track to enhance performance analysis?