Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/monitor-applications/database-observability/optimize.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/monitor-applications/database-observability/optimize/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at 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


