Database Latency Reducer
An automated loop designed to systematically identify and resolve database performance bottlenecks to reduce query response times. This agent analyzes execut…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "Database Latency Reducer" loop.
Goal: Reduce database query response times to meet or exceed performance targets
Max iterations: 10
Between iterations run: latency benchmark
Exit when: Average query latency drops below the target threshold
Analyze the current database queries for performance bottlenecks. Execute the 'latency benchmark' command to establish a baseline. For the top 3 slowest queries, generate optimized versions and suggest index additions. Implement one change at a time and re-run benchmarks after each modification until average response time meets the target threshold.
Self-pace this loop. After each iteration, run `latency benchmark` and evaluate the output, and only continue if the exit condition is not met (Average query latency drops below the target threshold). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.