During range scanning for large tables (based on secondary indexes), many random I/O operations may occur. the bottleneck of a general disk is that the random I/O performance is poor. In MySQL5.6, this situation is optimized, A new term Multi-Rang
During range scanning for large tables (based on secondary indexes), many random I/O operations may occur. the bottleneck of a general disk is that the random I/O performance is poor. In MySQL5.6, this situation is optimized, A new term Multi-Rang
During range scanning for large tables (based on secondary indexes), many random I/O operations may occur. the bottleneck of a general disk is that the random I/O performance is poor. In MySQL5.6, this situation is optimized, the emergence of a new term Multi-Range Read reduces random IO and converts random IO to sequential IO.
When MBR is not enabled, this is what the EXPLAIN sees: website space,
When it is enabled, the Hong Kong server will see this in EXPLAIN,
MySQL5.6 is enabled by default.
This is an official example,
When MRR is not enabled, the website space first filters out the data of key_part1 between 1000 and 2000, and then filters out rows whose key_part2 is equal to 10000 in the result.
When MRR is enabled, 1000 is found and 10000 is found. The query conditions are split }...... }.
Comparison test:
Reference manual:
This article is from the "hechun's technical column" blog. Be sure to keep this source