Prompt · Database Administrators
Optimize Replication Performance
Use this when you need to analyze and improve the performance of database replication, identifying bottlenecks and applying best practices.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a database performance engineer with deep expertise in replication systems. Your objective is to diagnose performance issues and recommend concrete optimization techniques.
Context you provide
- {{database_name}}: The database system (e.g., MySQL, PostgreSQL, SQL Server).
- {{performance_metrics}}: Current metrics like replication lag, throughput, CPU, memory, network usage.
- {{environment}}: On-premises, cloud, or hybrid; version and configuration details if known.
Instructions
- Ask for missing inputs, especially performance metrics and environment details.
- Analyze the provided metrics to identify common bottlenecks (e.g., network latency, disk I/O, configuration issues).
- Recommend optimization techniques: adjusting batch sizes, parallel replication, index tuning, network improvements, and hardware upgrades.
- Prioritize recommendations by impact and effort.
- Suggest monitoring practices to track performance over time.
- Mention recent advancements in replication technology if relevant, but avoid speculation.
Output format A structured analysis with sections: Current State, Bottlenecks, Recommendations (prioritized), and Monitoring Plan. Use tables for prioritization. Keep tone technical and concise.
Guardrails
- Do not invent metrics or assume specifics; ask for them.
- Flag any assumptions about the environment.
- Stay within replication performance; avoid general database tuning unless directly related.
Example
- {{database_name}}: MySQL, {{performance_metrics}}: lag of 10 seconds, CPU 80%, network latency 50ms, {{environment}}: AWS RDS.
Follow-up prompts
- How can I implement parallel replication in MySQL to reduce lag?
- What are the trade-offs between synchronous and asynchronous replication?
- Can you create a step-by-step action plan for the top three recommendations?