MySQL 8.4 Release Notes
30.4.3.37 The statements_with_full_table_scans and x$statements_with_full_table_scans 视图
这些视图显示了 normalized 语句,它们执行了全表扫描。默认情况下,行按降序的全扫描时间百分比和降序的总延迟排序。
statements_with_full_table_scans 和 x$statements_with_full_table_scans 视图具有以下列:
-
querynormalized 语句字符串。
-
db语句的默认数据库,或者如果没有则为
NULL。 -
exec_count语句执行的总次数。
-
total_latency语句的总等待时间。
-
no_index_used_count语句在扫描表时没有使用索引的总次数。
-
no_good_index_used_count语句在扫描表时没有使用好的索引的总次数。
-
no_index_used_pct语句在扫描表时没有使用索引的百分比。
-
rows_sent从表中返回的总行数。
-
rows_examined从存储引擎中读取的总行数。
-
rows_sent_avg平均从表中返回的行数。
-
rows_examined_avg平均从存储引擎中读取的行数。
-
first_seen语句首次出现的时间。
-
last_seen语句最近一次出现的时间。
-
digest语句摘要。