MySql下的Explain 中的TYPE, Extra

TYPE: system > const > eq_ref > ref > range > index > all

EXTRA: 

Using where(标明使用了where过滤);

Using temporary(九死无生); =》很经常发生在group by, order by中,优化可以从这里入手看看

Using filesort(九死一生);

Using index(发财了);

Using join buffer(表明使用了连接缓存,比如说在查询的时候,多表join的次数非常多,那么将配置文件中的缓冲区的join buffer调大一些);

Impossible where(where子句的值总是false,不能获取任何值);

posted @ 2020-01-11 17:46  默&诫  阅读(251)  评论(0)    收藏  举报