暂无图片
Using temporary; Using filesort ,这2个是不是只有出现了,都代表没有走索引?
我来答
分享
暂无图片 匿名用户
Using temporary; Using filesort ,这2个是不是只有出现了,都代表没有走索引?

Using temporary; Using filesort ,这2个是不是只有出现了,都代表没有走索引?

mysql库里

我来答
添加附件
收藏
分享
问题补充
2条回答
默认
最新
zy

对于Using filesort,官方解释如下:

If the Extra column of EXPLAIN output does not contain Using filesort, the index is used and a filesort is not performed.

If the Extra column of EXPLAIN output contains Using filesort, the index is not used and a filesort is performed.

对于Using temporary,官方给出了temporary出现的原因:
https://dev.mysql.com/doc/refman/8.0/en/internal-temporary-tables.html

暂无图片 评论
暂无图片 有用 1
R
reddey

是不是走索引,主要看TYPE和USING INDEX.

暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏