Skip to content

Commit fd00a09

Browse files
authored
v8.5.5: include storage engines in slow query logs and statements summary (#21155) (#22249)
1 parent 0a8c7a1 commit fd00a09

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

identify-slow-queries.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ Fields related to Resource Control:
167167
* `Request_unit_write`: the total write RUs consumed by the statement.
168168
* `Time_queued_by_rc`: the total time that the statement waits for available resources.
169169

170+
Fields related to storage engines:
171+
172+
- `Storage_from_kv`: introduced in v8.5.5, indicates whether this statement read data from TiKV.
173+
- `Storage_from_mpp`: introduced in v8.5.5, indicates whether this statement read data from TiFlash.
174+
170175
## Related system variables
171176

172177
* [`tidb_slow_log_threshold`](/system-variables.md#tidb_slow_log_threshold): Sets the threshold for the slow log. The SQL statement whose execution time exceeds this threshold is recorded in the slow log. The default value is 300 (ms).

statement-summary-tables.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,11 @@ Fields related to Resource Control:
455455
- `MAX_QUEUED_RC_TIME`: the maximum waiting time for available RU when executing SQL statements.
456456
- `RESOURCE_GROUP`: the resource group bound to SQL statements.
457457

458+
Fields related to storage engines:
459+
460+
- `STORAGE_KV`: introduced in v8.5.5, indicates whether the previous execution of SQL statements of this category read data from TiKV.
461+
- `STORAGE_MPP`: introduced in v8.5.5, indicates whether the previous execution of SQL statements of this category read data from TiFlash.
462+
458463
### `statements_summary_evicted` fields description
459464

460465
- `BEGIN_TIME`: Records the starting time.

0 commit comments

Comments
 (0)