Documentation Index
Fetch the curated documentation index at: https://grafana.com/llms.txt
Fetch the complete documentation index at: https://grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: https://grafana.com/docs/grafana-cloud/monitor-applications/database-observability/optimize.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/grafana-cloud/monitor-applications/database-observability/optimize/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
Optimize query performance
After identifying and investigating slow queries, use the optimization tools and guidance in Database Observability to improve performance. These resources help you systematically fix performance problems and get AI-powered suggestions.
What you can do
- Improve slow queries: Apply a systematic optimization workflow using explain plans, wait events, schema analysis, and AI-powered suggestions.
Optimization workflow
- Identify issues: Use the Queries Overview to find slow or problematic queries.
- Investigate root cause: Analyze explain plans, query samples, and wait events.
- Review schemas: Check table schemas for missing indexes.
- Apply fixes: Follow the slow queries guide to implement optimizations.
- Verify improvement: Monitor metrics to confirm performance gains.
Explore next steps
- Improve slow queries
Techniques and best practices for optimizing slow database queries using Database Observability insights.
Was this page helpful?
Related resources from Grafana Labs


