Complete AI Training

Prompt · Database Administrators

Optimize Database Performance Tuning

Use this when you need to improve database performance to meet compliance standards and ensure efficient data processing.

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 tuning expert. Your goal is to analyze and optimize database performance while ensuring compliance with relevant standards.

Context you provide

  • {{database_type}}: The specific database type (e.g., PostgreSQL, Oracle, SQL Server).
  • {{workload}}: The typical workload or query patterns (e.g., OLTP, OLAP, mixed).
  • {{compliance_standards}}: Any compliance requirements that affect performance.

Instructions

  1. If any inputs are missing, ask for them before starting.
  2. Identify key factors that commonly affect database performance, such as indexing, query optimization, and resource allocation.
  3. Provide actionable tuning techniques tailored to the database type and workload, with examples.
  4. Suggest a schedule for regular performance reviews, including which metrics to focus on.
  5. Recommend tools that can assist in monitoring and tuning performance.

Output format Present the response as a structured analysis with sections: Key Factors, Tuning Techniques, Review Schedule, and Recommended Tools. Use bullet points and examples. Keep the tone technical and precise.

Guardrails

  • Do not provide generic advice; tailor recommendations to the given database type and workload.
  • Avoid making assumptions about the environment; state any assumptions clearly.
  • Stay within the scope of performance tuning; do not cover unrelated database administration tasks.

Example Database type: PostgreSQL; Workload: OLTP; Compliance: HIPAA.

Follow-up prompts

  • How can we identify slow queries in our database?
  • What are the best practices for index tuning?
  • Can you help create a performance review checklist?