MySQL 8.4 版本注意事項
- 30.4.3.1 host_summary 與 x$host_summary 檢視
- 30.4.3.2 host_summary_by_file_io 與 x$host_summary_by_file_io 檢視
- 30.4.3.3 host_summary_by_file_io_type 與 x$host_summary_by_file_io_type 檢視
- 30.4.3.4 host_summary_by_stages 與 x$host_summary_by_stages 檢視
- 30.4.3.5 host_summary_by_statement_latency 與 x$host_summary_by_statement_latency 檢視
- 30.4.3.6 host_summary_by_statement_type 與 x$host_summary_by_statement_type 檢視
- 30.4.3.7 innodb_buffer_stats_by_schema 與 x$innodb_buffer_stats_by_schema 檢視
- 30.4.3.8 innodb_buffer_stats_by_table 與 x$innodb_buffer_stats_by_table 檢視
- 30.4.3.9 innodb_lock_waits 與 x$innodb_lock_waits 檢視
- 30.4.3.10 io_by_thread_by_latency 與 x$io_by_thread_by_latency 檢視
- 30.4.3.11 io_global_by_file_by_bytes 與 x$io_global_by_file_by_bytes 檢視
- 30.4.3.12 io_global_by_file_by_latency 與 x$io_global_by_file_by_latency 檢視
- 30.4.3.13 io_global_by_wait_by_bytes 與 x$io_global_by_wait_by_bytes 檢視
- 30.4.3.14 io_global_by_wait_by_latency 與 x$io_global_by_wait_by_latency 檢視
- 30.4.3.15 latest_file_io 與 x$latest_file_io 檢視
- 30.4.3.16 memory_by_host_by_current_bytes 與 x$memory_by_host_by_current_bytes 檢視
- 30.4.3.17 memory_by_thread_by_current_bytes 與 x$memory_by_thread_by_current_bytes 檢視
- 30.4.3.18 memory_by_user_by_current_bytes 與 x$memory_by_user_by_current_bytes 檢視
- 30.4.3.19 memory_global_by_current_bytes 與 x$memory_global_by_current_bytes 檢視
- 30.4.3.20 memory_global_total 與 x$memory_global_total 檢視
- 30.4.3.21 metrics 檢視
- 30.4.3.22 processlist 與 x$processlist 檢視
- 30.4.3.23 ps_check_lost_instrumentation 檢視
- 30.4.3.24 schema_auto_increment_columns 檢視
- 30.4.3.25 schema_index_statistics 與 x$schema_index_statistics 檢視
- 30.4.3.26 schema_object_overview 檢視
- 30.4.3.27 schema_redundant_indexes 與 x$schema_flattened_keys 檢視
- 30.4.3.28 schema_table_lock_waits 與 x$schema_table_lock_waits 檢視
- 30.4.3.29 schema_table_statistics 與 x$schema_table_statistics 檢視
- 30.4.3.30 schema_table_statistics_with_buffer 與 x$schema_table_statistics_with_buffer 檢視
- 30.4.3.31 schema_tables_with_full_table_scans 與 x$schema_tables_with_full_table_scans 檢視
- 30.4.3.32 schema_unused_indexes 檢視
- 30.4.3.33 session 與 x$session 檢視
- 30.4.3.34 session_ssl_status 檢視
- 30.4.3.35 statement_analysis 與 x$statement_analysis 檢視
- 30.4.3.36 statements_with_errors_or_warnings 與 x$statements_with_errors_or_warnings 檢視
- 30.4.3.37 statements_with_full_table_scans 與 x$statements_with_full_table_scans 檢視
- 30.4.3.38 statements_with_runtimes_in_95th_percentile 與 x$statements_with_runtimes_in_95th_percentile 檢視
- 30.4.3.39 statements_with_sorting 與 x$statements_with_sorting 檢視
- 30.4.3.40 statements_with_temp_tables 與 x$statements_with_temp_tables 檢視
- 30.4.3.41 user_summary 與 x$user_summary 檢視
- 30.4.3.42 user_summary_by_file_io 與 x$user_summary_by_file_io 檢視
- 30.4.3.43 user_summary_by_file_io_type 與 x$user_summary_by_file_io_type 檢視
- 30.4.3.44 user_summary_by_stages 與 x$user_summary_by_stages 檢視
- 30.4.3.45 user_summary_by_statement_latency 與 x$user_summary_by_statement_latency 檢視
- 30.4.3.46 user_summary_by_statement_type 和 x$user_summary_by_statement_type 檢視
- 30.4.3.47 version 檢視
- 30.4.3.48 wait_classes_global_by_avg_latency 和 x$wait_classes_global_by_avg_latency 檢視
- 30.4.3.49 wait_classes_global_by_latency 和 x$wait_classes_global_by_latency 檢視
- 30.4.3.50 waits_by_host_by_latency 和 x$waits_by_host_by_latency 檢視
- 30.4.3.51 waits_by_user_by_latency 和 x$waits_by_user_by_latency 檢視
- 30.4.3.52 waits_global_by_latency 和 x$waits_global_by_latency 檢視
以下章節描述 sys
結構描述檢視。
sys
結構描述包含許多以各種方式總結 Performance Schema 表格的檢視。這些檢視大多成對出現,一對中的其中一個成員與另一個成員的名稱相同,但帶有 x$
前綴。例如,host_summary_by_file_io
檢視會總結按主機分組的檔案 I/O,並顯示從皮秒轉換為更易讀的值(帶有單位)的延遲;
mysql> SELECT * FROM sys.host_summary_by_file_io;
+------------+-------+------------+
| host | ios | io_latency |
+------------+-------+------------+
| localhost | 67570 | 5.38 s |
| background | 3468 | 4.18 s |
+------------+-------+------------+
x$host_summary_by_file_io
檢視會總結相同的資料,但顯示未格式化的皮秒延遲
mysql> SELECT * FROM sys.x$host_summary_by_file_io;
+------------+-------+---------------+
| host | ios | io_latency |
+------------+-------+---------------+
| localhost | 67574 | 5380678125144 |
| background | 3474 | 4758696829416 |
+------------+-------+---------------+
不帶 x$
前綴的檢視旨在提供更使用者友善且更易於閱讀的輸出。帶有 x$
前綴的檢視會以原始形式顯示相同的值,其目的更在於搭配其他工具使用,以對資料執行其自身的處理。
不帶 x$
前綴的檢視與對應的 x$
檢視的不同之處如下
位元組計數使用
format_bytes()
格式化為大小單位。時間值使用
format_time()
格式化為時間單位。SQL 陳述式會使用
format_statement()
截斷為最大顯示寬度。路徑名稱會使用
format_path()
縮短。