mysql explain 命令简解
参考官方文档地址:
http://dev.mysql.com/doc/refman/5.7/en/explain.html
为什么用explain . 如果你的页面返回结果很慢,你就需要使用explain去分析你的sql是否需要优化了.
1/ 官方定义
The EXPLAIN statement provides information about how MySQL executes statements:
explain 语句提供 mysql 语句执行信息.
2/ 注意点
1) explain 能分析的语句包括 'SELECT
, DELETE
, INSERT
, REPLACE
, and UPDATE
2) explain 可以分析某个mysql的connection Id
3) 使用explain 查看索引的使用 和 表的连接顺序 ,以提高查询速度
4) 如果你有索引,但是没有使用上,你需要ANALYZE TABLE.
补充mysql索引失效的情况.
1 where 条件中有or
2 多列索引不是第一部分
3 like查询以%开头
4 字段类型是字符串,而where条件是数字
5 mysql自己估计全表扫描比索引快的时候(假设数据结果数量已知,可通过索引的count()获取结果集数量,因为索引是根据位置去0(1)读取,所以结果集数量为T则读取T次,全表扫描读取数据Block,假设数据量紧凑存储在N个Block上,全表扫描读取N次,一般在T>N,且达到某个比例的时候,此比例是否可设置有待研究,mysql不使用索引) SHOW SESSION STATUS LIKE 'Handler_read%'
handler_read_key:这个值越高越好,越高表示使用索引查询到的次数
handler_read_rnd_next:这个值越高,说明查询低效
3/ 输出格式
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAk8AAAFkCAIAAAC2JkhRAAAgAElEQVR4nO2dwcGrKhCF/7rsIy1YgQW8EmIl2VmELWSdOngLFWZgBtFALuj5NvdGEfEocwLyZ/4MAAAAcHX+/nUDAAAAgOLA7QAAAFwfuB0AAIDrA7cDAABwfeB2AAAArg/cDgAAwPWB2wEAALg+cDsAAADX5wduN4+Px+MxzqnbwWXALQYA1MIZt1timIce0jK5HTmrfsznNYgF1u2W4TWvW1zR9QTD6xOW30ot24fXRz0130nL2zpJ6+ZRvRzeBPGUEvOYXvZkJez+j6+Pfja4HQCgFhpxO999xMNcuxLc7uNZF/ex4HxrnbrbuSPoXtHtSAnN7Q5KzM/3rdvFKgmFibUKbgcAqIUvZjL9yP/5zCQUehF9eL1G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N8HtKgLCFgLCApCLdnvTSbcDAABwT7L70G+42qsvAAAAIARuBwAA4PrA7QAAAFwfuB0AAIDrA7cDAABwfeB2AAAArg/cDgAAwPWB2wEAALg+cDsAAADXB24HAADg+sDtAAAAXB+4HQAAgOsDtwMAAHB94HYAAACuD9wOAADA9YHbAQAAuD5wOwAAANcHbgcAAOD6/A+T2rBthh2ZMwAAAABJRU5ErkJggg==" alt="" />
重点关注:
1 key 是否使用索引
2 rows 查询返回的结果集数量
3 filtered 过滤的结果.
rows * filtered 得出将要关联的数据条目数量.所以filtered 越小越好,rows 也是越小越好
***
explain connection Id 会分析链接最近一次执行的sql语句. 结果会变动,甚至如果语句不是insert ,select 等操作会报错. show warnings
mysql explain 命令简解的更多相关文章
- 转载:MySQL EXPLAIN 命令详解学习
转载自:https://blog.csdn.net/mchdba/article/details/9190771 MySQL EXPLAIN 命令详解 MySQL的EXPLAIN命令用于SQL语句的查 ...
- MySQL EXPLAIN 命令详解
MySQL EXPLAIN 命令详解 MySQL的EXPLAIN命令用于SQL语句的查询执行计划(QEP).这条命令的输出结果能够让我们了解MySQL 优化器是如何执行SQL 语句的.这条命令并没有提 ...
- 2.mysql explain命令详解
EXPLAIN详解 SQL编写和解析 编写过程 select-distinct-from-join-on-where-group by-having-order by-limit- 解析过程 from ...
- MySQL Explain命令详解--表的读取顺序,数据读取操作的类型等
表示索引中使用的字节数,可通过该列计算查询中使用的索引的长度(key_len显示的值为索引字段的最大可能长度,并非实际使用长度,即key_len是根据表定义计算而得,不是通过表内检索出的) 不损失精确 ...
- MySQL EXPLAIN 命令详解学习
http://blog.csdn.net/mchdba/article/details/9190771
- 一次浴火重生的MySQL优化(EXPLAIN命令详解)
一直对SQL优化的技能心存无限的向往,之前面试的时候有很多面试官都会来一句,你会优化吗?我说我不太会,这时可能很多人就会有点儿说法了,比如会说不要使用通配符*去检索表.给常常使用的列建立索引.还有创建 ...
- 【MySQL】EXPLAIN命令详解
具体参考: https://www.cnblogs.com/gomysql/p/3720123.html 原文如下: 在工作中,我们用于捕捉性能问题最常用的就是打开慢查询,定位执行效率差的SQL,那么 ...
- SQL中EXPLAIN命令详解---(转)
MySQL Explain详解 在日常工作中,我们会有时会开慢查询去记录一些执行时间比较久的SQL语句,找出这些SQL语句并不意味着完事了,些时我们常常用到explain这个命令来查看一个这些SQ ...
- mysql explain 命令讲解
explian命令可以显示select语句的执行计划 explain的结果中每行对应select语句中的一个表,输出结果中的顺序是按照语句处理表的顺序. mysql使用嵌套循环来处理所有的join连接 ...
随机推荐
- (导航控制器view)全屏幕滑动实现pop效果
看到现在app 中越来越流行的手势滑动实现pop效果,心里很是痒痒跃跃欲试,经过多方查看资料,终于在简书上找到了详细的实现方案: 轻松学习之二——iOS利用Runtime自定义控制器POP手势动画 经 ...
- Gengxin讲STL系列——String
衔接上一篇引导. 作为第一篇博客,就要大气一点. 可我好像并不知道怎么才能让自己的博客大气一点= =: 明天是我生日,自己先买个中文域名庆祝了一下…… 好了,废话说完了,结果博客也没大气到哪去……,正 ...
- 表单验证的validate.js插件---jQuery Validation Plugin
早上在公交车上看了一个关于慕课网的教程<表单验证的validate.js插件---jQuery Validation Plugin>,正好可以用到自己近期开发简易微博的注册页面和登录页面, ...
- Android studio 配置JNI环境
Android studio配置jni开发环境,主要配置是两个build文件,以及新建一个jni文件,放c代码. 代码如下1: apply plugin: 'com.android.model.app ...
- tcl/tk demo
环境及版本说明: OSX10.9 tclsh -> tclsh8.5 wish -> wish8.5 查看本机运行环境: which wish; 2 /usr/bin/wish which ...
- 正式学习React (六) 项目篇
https://github.com/huenchao/yingshili 或者点这里 注意事项看ReadME.md 会持续更新,反正就是把之前分析的redux react-redux都用一下,然后会 ...
- KnockOutJS学习系列----(一)
原文地址:http://www.cnblogs.com/n-pei/archive/2011/12/23/2299217.html 好几个月没去写博客了,最近也是因为项目紧张,不过这个不是借口,J. ...
- linux命令之ls命令的简明讲解
我详细熟悉linux操作系统的同学对ls命令是再熟悉不过了因为我们通常使用该命令查看某个目录下的文件 其命令形式是:ls [选项] 目录或者文件 本文中主要讲解两个最常用的选项: -l:用于列出文件的 ...
- (续)线性表之双向链表(C语言实现)
在前文实现单向链表的基本操作下,本文实现双向链表的基本操作. 双向链表与单链表差异,是双向链表结点中有前向指针和后向指针.所以在插入和删除新结点元素时候不见要考虑后向指针还要考虑前向指针. 以下是双向 ...
- java 解析 xml (DOM方法全)
Java 处理 XML 的三种主流技术及介绍 http://www.ibm.com/developerworks/cn/xml/dm-1208gub/ 这篇文章讲的比较详细,下面我主要介绍 dom方法 ...