MySQL 8.4 Release Notes
30.4.3.38 The statements_with_runtimes_in_95th_percentile
and x$statements_with_runtimes_in_95th_percentile
Views
这些视图列出了运行时间在95%百分位数的语句。默认情况下,行被排序为降序平均延迟。
这两个视图使用两个辅助视图:x$ps_digest_avg_latency_distribution
和 x$ps_digest_95th_percentile_by_avg_us
。
The statements_with_runtimes_in_95th_percentile
和 x$statements_with_runtimes_in_95th_percentile
视图具有以下列:
-
query
normalized 语句字符串。
-
db
语句的默认数据库,或者
NULL
如果没有。 -
full_scan
语句的总体表扫描次数。
-
exec_count
语句的总执行次数。
-
err_count
语句的总错误次数。
-
warn_count
语句的总警告次数。
-
total_latency
等待时间的总和。
-
max_latency
单个等待时间的最大值。
-
avg_latency
平均等待时间。
-
rows_sent
语句返回的总行数。
-
rows_sent_avg
语句返回的平均行数。
-
rows_examined
语句从存储引擎读取的总行数。
-
rows_examined_avg
语句从存储引擎读取的平均行数。
-
first_seen
语句首次出现的时间。
-
last_seen
语句最后一次出现的时间。
-
digest
语句摘要。