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

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

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

你可能感兴趣的:(数据库)