MySQL read hard drive data

Source: Internet
Author: User

The smallest administrative unit of the InnoDB is the page

InnoDB Minimum Application unit is the district, a district 1M, contains 64 pages, each page 16K, that is, 64*16k=1m, taking into account the hard disk locality, each read 4 extents, that is, read 4M of data loaded into memory

Linear Pre-reading:

After the read thread of InnoDB reads 4M data from disk, if the data of the pages connected to the 4 extents is greater than or equal to Innodb_read_ahead_threshold (the default is 56), the data in the next 4 extents is then load to memory

Attention:

InnoDB Storage Engine This book says at least apply 4 data to the drive,

But most articles say that only 1 districts of data are requested, first of all

Reference

Http://www.oschina.net/translate/making-full-table-scan-10x-faster-in-innodb

MySQL read hard drive data

Related Article

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.