Diagnose database performance
Start with the slow operation, then inspect the database activity that could explain it. The Admin sections provide query statistics, connections, locks, storage and index information for that investigation.
Diagnose database performance
Section titled “Diagnose database performance”- Note the affected query or table and when the slowdown occurs.
- Select Admin in the connection toolbar.
- Open Overview for a first look at current activity.
- Choose the section that matches the symptom below.

| What you observe | Where to investigate | What to compare |
|---|---|---|
| One statement is repeatedly slow | Slow Queries | Duration and call statistics for that statement |
| Work waits while other queries run | Locks and Connections | Waiting work and the sessions that block it |
| A table occupies more space than expected | Storage | Table sizes, index sizes and maintenance information |
| A query may need a different index | Indexes | Existing definitions and usage statistics |
| Server settings may explain the behavior | Server Info | Configuration for the connected server |
Investigate one statement
Section titled “Investigate one statement”- Find the statement in Slow Queries, or open its SQL in the query editor.
- Inspect an EXPLAIN plan using the available plan action.
- Compare the plan’s scans, joins and index choices with the table’s structure.
- Change one query or index at a time, then compare the result with the same workload.
For an AI explanation of a plan, follow Explain queries. That page also explains the confirmation required before EXPLAIN ANALYZE executes a statement.
Investigate waiting work
Section titled “Investigate waiting work”Inspect Locks and Connections together before ending a session. Identify the blocker and check what that session is doing. Use the connections and locks guide for session actions and their effects.
If the symptom is a query that you need to stop now, follow query cancellation.
Check the available evidence
Section titled “Check the available evidence”Read any extension, server configuration or permission notice in the selected section. Use Admin data unavailable to resolve those prerequisites before drawing a conclusion from an empty list.
For a broader review, AI Database Analysis creates recommendations from the database statistics you select. Review a recommendation’s evidence before applying a structure change.
Keep the query, time and observed duration together when comparing runs. If fetching many rows is the slow part, use the result loading controls to request a sample.
Related
Section titled “Related”- Slow or timed-out queries for timeout and server checks.
- Admin overview for the complete section list.
- Database guides: PostgreSQL, MySQL and MariaDB.