MySQL5.6 supports Multi-RangeRead INDEX OPTIMIZATION

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.