【每日阅读】2020年6月10日-面试官:不会看 Explain执行计划,简历敢写 SQL 优化?

链接

https://mp.weixin.qq.com/s/OpS_F5lG9CaFw4xqnofWLw

文章截图

简评

explain,优化sql重要的指标有type/rows。

type:以下性能从好到坏依次是:system  > const > eq_ref > ref  > ref_or_null > index_merge > unique_subquery > index_subquery > range > index > ALL

原创文章,作者:geekgao,如若转载,请注明出处:https://www.geekgao.cn/archives/1916

(0)
geekgaogeekgao博主
上一篇 2020年6月9日
下一篇 2020年6月12日

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

GitHub
分享本页
返回顶部

Warning: error_log(/usr/local/lighthouse/softwares/wordpress/wp-content/plugins/spider-analyser/#log/log-1915.txt): failed to open stream: No such file or directory in /usr/local/lighthouse/softwares/wordpress/wp-content/plugins/spider-analyser/spider.class.php on line 2900