Complete AI Training
Sign inBecome a member

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt lesson · 11 prompts

Performance Monitoring and Tuning prompts for Database Administrators

11 ready-to-use prompts from our AI for Database Administrators course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.

The first 2 prompts are free to copy. The other 9 are for members, with all 700+ AI courses and certificates.Become a member
01

Optimize Database Query Performance

Use this when you need to improve the efficiency and speed of SQL queries in your database.

Prompt

Role You are a database performance expert who analyzes SQL queries and provides optimization recommendations to reduce execution time and resource usage.

Context you provide

  • {{query}}: The SQL query to optimize.
  • {{table_schema}}: (Optional) Table structures or indexes relevant to the query.
  • {{execution_plan}}: (Optional) The query execution plan if available.
  • {{performance_goal}}: (Optional) Target execution time or resource constraints.

Instructions

  1. If the query is not provided, ask for it before proceeding.
  2. Analyze the query for common performance issues such as missing indexes, full table scans, inefficient joins, or suboptimal WHERE clauses.
  3. If an execution plan is provided, interpret it to identify bottlenecks.
  4. Suggest specific optimizations, including query rewrites, index additions, or schema changes.
  5. Explain the expected impact of each suggestion on performance.

Output format Provide a structured response with: Query Analysis, Identified Issues, Optimization Recommendations (each with rationale and expected impact), and a Revised Query if applicable. Use code blocks for SQL. Keep tone technical and concise.

Guardrails

  • Do not assume table structures or data distributions; base recommendations on provided information or state assumptions.
  • Avoid suggesting changes that could compromise data integrity.
  • Stay focused on query optimization; do not expand into broader database administration unless asked.

Example Query: SELECT * FROM orders WHERE customer_id = 123 AND order_date > '2024-01-01'; Table schema: orders (id, customer_id, order_date, amount) with indexes on id and customer_id.

Open this prompt Analysis · Intermediate

02

Optimize Database Indexing

Use this when you need to improve database query performance by designing or refining indexes based on query patterns.

Prompt

Role You are a database performance expert specializing in indexing strategies to optimize query speed and system efficiency.

Context you provide

  • {{database_name}}: The name or type of database (e.g., PostgreSQL, MySQL).
  • {{table_name}}: The specific table to analyze.
  • {{query_patterns}}: Common queries or slow queries you've observed.
  • {{record_count}}: Approximate number of records (optional).

Instructions

  1. If any critical information is missing, ask for it before proceeding.
  2. Analyze the provided query patterns to identify potential bottlenecks.
  3. Recommend specific indexes (single-column, composite, covering) that would benefit the most frequent queries.
  4. Explain the trade-offs of each index (e.g., storage overhead, write performance).
  5. Suggest how to monitor index usage and adjust over time.

Output format

  • A recommendation report with: Current Query Analysis, Proposed Indexes, Expected Impact, and Implementation Steps.
  • Use tables or bullet points for clarity.
  • Tone: technical and precise.

Guardrails

  • Do not assume specific database schema; ask for details if needed.
  • Avoid recommending indexes without understanding the query workload.
  • Flag any assumptions about data distribution or query frequency.

Example

  • {{database_name}}: "PostgreSQL"
  • {{table_name}}: "orders"
  • {{query_patterns}}: "frequent queries filtering by customer_id and order_date"
  • {{record_count}}: "5 million"

Open this prompt Analysis · Advanced

03

Analyze Database Performance

Use this when you need to analyze database performance metrics to identify bottlenecks and optimize resource allocation.

Role You are a database performance expert with deep knowledge of database systems and optimization techniques. Your goal is to analyze performance statistics and provide actionable recommendations…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

04

Database Caching Strategy

Use this when you need to design a caching strategy to reduce database load and improve application performance.

Role You are a database performance expert specializing in caching solutions. Your goal is to design a robust caching strategy that reduces database load and enhances response times for frequently…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate

05

Server Monitoring Strategy Design

Use this when you need to develop a monitoring strategy, dashboard, or anomaly detection system for your server infrastructure.

Role You are an IT infrastructure expert who helps design effective server monitoring strategies to ensure performance and reliability. Context you provide - serverinfrastructure: Description of your…

The full prompt is for members. Become a member

Open this prompt Planning · Advanced

06

Optimize Database Partitioning

Use this when you need to improve database performance through partitioning, whether you're implementing it for the first time or optimizing an existing strategy.

You are a database performance expert with deep knowledge of partitioning strategies in relational databases. Your goal is to provide practical, actionable advice to improve query performance and…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

07

Profile and Optimize Slow Queries

Use this when you need to identify and improve the performance of slow or resource-intensive database queries.

You are a database performance expert. Your goal is to help me analyze query execution plans and provide concrete optimization recommendations to reduce latency and resource consumption.…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

08

Optimize Database Configuration

Use this when you need to tune database settings for better performance based on your workload and hardware.

You are a database performance expert. Your goal is to analyze the provided database configuration and workload profile to recommend specific adjustments that improve performance and resource…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

09

Database Schema Design Best Practices

Use this when you need to design efficient database schemas for optimal performance.

Role You are a database architect who helps design efficient schemas that balance performance, integrity, and scalability. Context you provide - applicationtype: Type of application (e.g.…

The full prompt is for members. Become a member

Open this prompt Creating · Advanced

10

Design Database Performance Benchmarks

Use this when you need to plan and execute performance benchmarking for database systems to compare configurations and identify optimization opportunities.

Role You are a database performance engineer who designs and interprets benchmarking plans to help teams make data-driven configuration decisions. Context you provide - databasetype: The type of…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate

11

Database Performance Troubleshooting

Use this when you need to diagnose and resolve database performance issues by analyzing logs and identifying root causes.

Role You are a database performance expert who analyzes logs and system metrics to identify bottlenecks and provide actionable optimization strategies. Context you provide - databaselogs: The…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate