12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ADADADADAD
mysql数据库 时间:2024-12-03 10:31:22
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
mysql 5.7中崭新的 mysql sys schema 声明:本文内容来自于《MySQL运维内参》,笔者读后整理的笔记,仅供学习使用。 以下内容都是MySQL 5.7的新功能 一、 Performance Schema的
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
+--------------+----------------------+---------------+
| table_schema | table_name | io_to_request |
+--------------+----------------------+---------------+
| oa_2016| form_trigger_record| | oa_2016| form_log | | oa_2016| ctp_content_all| | oa_2016| org_relationship |
table_name: ctp_content_all
column_name: id
data_type:column_type:is_signed:is_unsigned:max_value: auto_increment: auto_increment_ratio:
(root@localhost)[sys]> +------------------------------------------------+--------+
| file | avg_io |
+------------------------------------------------+--------+
| @@datadir/oa_2016/portal_link_space| @@datadir/oa_2016/pro_eipusercustomsort| @@datadir/oa_2016/ctp_dr_url_map| @@datadir/oa_2016/office_auto_applyinfo| @@datadir/oa_2016/edoc_exchange_turn_rec| @@datadir/oa_2016/portal_portlet_property| @@datadir/oa_2016/showpost_info| @@datadir/oa_2016/cip_agent| @@datadir/oa_2016/thirdparty_portal_config| @@datadir/oa_2016/portal_link_option+------------------------------------------------+--------+DBA可以通过该查询大致的了解磁盘IO消耗在哪里,哪些文件消耗的最多。DBA可以根据这些信息,针对某表,某库进行优化。
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:通过上面可以看到,该sql语句总共执行了5次,有5次都没有使用索引,总共消耗了997.89 us。
| Variable_name| Value |
+----------------------------------------------------------+-------+
| performance_schema | ON|
11-20
11-19
11-20
11-20
11-20
11-19
11-20
11-20
11-19
11-20
11-19
11-19
11-19
11-19
11-19
11-19