Skip to content

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.

  1. Note the affected query or table and when the slowdown occurs.
  2. Select Admin in the connection toolbar.
  3. Open Overview for a first look at current activity.
  4. Choose the section that matches the symptom below.
Admin Overview with monitoring, storage and structure sections in the sidebar
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
  1. Find the statement in Slow Queries, or open its SQL in the query editor.
  2. Inspect an EXPLAIN plan using the available plan action.
  3. Compare the plan’s scans, joins and index choices with the table’s structure.
  4. 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.

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.

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.