Find slow queries and index problems
Slow Queries compares recorded statements by execution time and calls. Indexes shows index definitions and available usage statistics so you can review the indexes behind those queries.
For work that is blocked right now, start with connections and locks.
Find slow queries and index problems
Section titled “Find slow queries and index problems”- Open Admin › Slow Queries.
- Adjust Min duration: to the minimum average execution time you want to include, in seconds.
- Select a statement to inspect its SQL and statistics.
- Compare its average time, total time and call count.
- Choose EXPLAIN, when available, to open the plan dialog.
- Click EXPLAIN in the dialog to load the plan.
A high total time can come from many short calls or a few long ones. Compare both timing and frequency before choosing a query to investigate.

Review the statement before selecting EXPLAIN ANALYZE. It executes the query to measure actual behavior. See EXPLAIN ANALYZE for the difference from an estimated plan.
Use Explain with AI for an explanation of one plan. Use AI Database Analysis for recommendations across the database.
Review index use
Section titled “Review index use”- Open Admin › Indexes.
- Search for the affected table or index.
- Compare the index columns, constraints and available size or usage figures.
- Enable Unused only, when available, to review candidates with no recorded scans.
- Compare those candidates with the query plans that matter to your application.
Check the statistics history before treating a zero count as evidence for removal. Counters reflect recorded activity since collection began or statistics were reset. Include infrequent reports and scheduled jobs in your review.
Remove a reviewed index
Section titled “Remove a reviewed index”Preserve the index definition before removal so you can recreate it if necessary. Removing an index can make queries slower.
- Open the index row’s action menu.
- Choose Drop Index.
- Review the table, index name and SQL in the confirmation dialog.
- Type the index name exactly as shown.
- Enter the connection password if requested.
- Click Drop Index.
Use change structure for index additions and other schema edits.
Database differences
Section titled “Database differences”| Database | Statistics and index view |
|---|---|
| PostgreSQL | Statement statistics require pg_stat_statements. Index details include sizes, scans and tuples read. |
| MySQL | Statement summaries require performance_schema; index usage depends on active statistics collection. |
| MariaDB | Statement summaries require performance_schema; available index statistics depend on server instrumentation. |
| SQLite | Index definitions include columns and uniqueness; index sizes use dbstat when available. |
| Amazon Redshift | Workload statistics use Redshift sources. Indexes displays Table Design: distribution style and key, sort key, encoding, skew and statistics freshness. |
Follow admin data unavailable for statistics setup and access checks.
Related
Section titled “Related”- Slow-query SQL: PostgreSQL, MySQL and MariaDB.
- Unused-index SQL: PostgreSQL and MySQL.
- Storage and maintenance for table sizes and maintenance actions.