mysql的解释计划

推荐查看https://www.cnblogs.com/sunjingwu/p/10755823.html,这篇文章,无论是例子还解析都很好

说一下个人对解释计划的理解

1. 需要关注的列,最重要的是type ,其次是row ,filter ,id

2.type 有 all index range req req_ef const system,这个是按照查询效率从小到大,或者说使用的索引级别

原文地址:https://www.cnblogs.com/xiaoshahai/p/12766372.html