Important components of MySQL InnoDB

Source: Internet
Author: User

InnoDB consists of several components

First, Innodb_buffer_pool:

1 It is primarily used to cache data and indexes (precisely because the tables in InnoDB are organized by a clustered index, so the data is not the leaf node of the index of the primary key).

Second, change buffer:

1 If the UPDATE statement is to update the record of the level two index, but the page on which the record is located is not in Innodb_buffer_pool, InnoDB will put this on the two-level index

The update action for the face page is cached to a specific region of innodb_buffer_pool (change buffer), and then if there is another transaction B to read this level two index page,

Because the page is not yet, in the Innodb_buffer_pool, so B transaction will first load the page into the Innodb_buffer_pool, this way the target page even enter Innodb_buffer_pool,

Next, you can update the index page based on the contents of the change buffer. This can save IO operations and improve performance.

2 of course other refresh machine (change in buffer changes in the disk) system is also some, for example, when MySQL is more idle, slow shutdown process will also refresh

Change the contents of buffer to disk

3 Monitoring Change Buffer

show engine InnoDB status;-------------------------------------INSERTBUFFER andADAPTIVE HASHINDEX-------------------------------------Ibuf:size1, the free listLen 0, SEG size2,0mergesmerged Operations:Insert 0,DeleteMark0,Delete 0Discarded operations:Insert 0,DeleteMark0,Delete 0HashTableSize34679, node Heap has0buffer (s) HashTableSize34679, node Heap has0buffer (s) HashTableSize34679, node Heap has0buffer (s) HashTableSize34679, node Heap has0buffer (s) HashTableSize34679, node Heap has0buffer (s) HashTableSize34679, node Heap has0buffer (s) HashTableSize34679, node Heap has0buffer (s) HashTableSize34679, node Heap has0buffer (s)0.00Hash searches/S0.00Non-Hash searches/s---LOG---LogSequence Number 24635311LogFlushed up to   24635311Pages flushed up to 24635311 LastCheckpointAt246353020PendingLogFlushes,0Pending CHKP writesTen LogI/O's done, 0.00 log I/O'S/Second

    

----

Important components of MySQL InnoDB

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.