关于Using index for group-by和Loose Index Scan的关系

216 阅读1分钟

最近看好多关于mysql的blog在讲松散扫描的时候,提到了explain后,extra会显示Loose Index Scan,但是在5.6.34等版本中,会显示Using index for group-by,通过查找官方资料发现两者没什么区别。下面引自官方文档:dev.mysql.com/doc/refman/…

If Loose Index Scan is applicable to a query, the EXPLAIN output shows Using index for group-by in the Extra column.