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
视图具有以下列:
-
query
normalized 语句字符串。
-
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
语句摘要。