Four notes from the InnoDB section of MySQL

Source: Internet
Author: User

Four notes from the InnoDB section of MySQL

The first is the transaction implementation mechanism of InnoDB. On csdn, click "Download". Here we will briefly introduce that it is controlled through redo and undo, in addition, the log buffer is refreshed to the redo log file every second, so it is very fast for large transaction commit. For undo logs, it is used for transaction rollback, and it has its own undo segment in the shared tablespace. The isolation level of transactions is implemented through locks. Therefore, we need to understand the InnoDB Lock Mechanism. This section also describes distributed transactions, that is, xa.

The second is the InnoDB Lock Mechanism. On csdn, click "Download". It mainly introduces the InnoDB Lock Mechanism and InnoDB implements row-level locks, there are also shared locks and exclusive locks, like MyISAM locks and write locks, and InnoDB also has the intention to lock. In addition, the InnoDB Engine implements consistent non-locked read through MVCC. Of course, you can also use SQL statements to manually lock the read. There is an auto-increment problem, which is mentioned in many places, that is, the upper bound of auto-increment operations will become a hot topic.

The third is InnoDB Index. On csdn: Click to download. It mainly introduces InnoDB Index mechanism. InnoDB uses B + Tree index and hash index, however, we do not need to manage the hash index. InnoDB will automatically create it. Because InnoDB is an index organization table, there will be clustered indexes and non-clustered indexes, and some data will refer to non-clustered indexes as secondary indexes or secondary indexes. The pre-read mechanism is also introduced here. For pre-read, it needs to be used properly. Improper use will lead to performance degradation.

The fourth is InnoDB Performance Tuning. On csdn, click here for download. It mainly introduces some content about InnoDB optimization, and is more inclined to choose and judge the hardware, I also introduced some knowledge about raid.

The above are the four notes for InnoDB. If you feel useful, download them.

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.