High performance MySQL notes (Chapter One, MySQL architecture and history)

Source: Internet
Author: User

MySQL server logical architecture diagram is as follows:

Currently working with version 5.5, version 5.5 starts MySQL to start with InnoDB as the default storage engine, and InnoDB tables are based on clustered indexes.

MySQL Storage Engine lock management is very important, on a given resource, the less the amount of locked data, the higher the system concurrency, as long as there is no conflict between each other.

Shared locks are also called read locks, and exclusive locks are also called write locks.

Characteristics of a transaction acid,a atomicity (atomicity) C conformance (consistency) I isolation (isolation) d persistence (durability)

The isolation level of the transaction is: 1, read UNCOMMITTED unread (will produce dirty read, generally do not) 2, Read Committed commit reads (most database default) 3, repeatable read repeatable read (mysql default) 4, Serializable serializable (usually not used)

InnoDB handles the deadlock method and rolls back the transaction that holds the least row-level exclusive lock.

InnoDB is a transactional table, and MyISAM is a non-transactional table.

InnoDB 1, support transaction 2, support hot backup 3, crash recovery fast

High performance MySQL notes (Chapter One, MySQL architecture and history)

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.