Most expensive queries
get_slow_queriesThe 20 queries with the most total time (pg_stat_statements, values replaced by $1, $2…; performance_schema on MySQL and MariaDB, values replaced by ?): calls, total and mean time, rows. A starting point for indexes. On Valkey, the commands with the most total time since the engine started (GET, HSET…). Scope: vms.read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database id, as returned by list_databases or create_database. |