MySQL lock mechanism--row lock

Source: Internet
Author: User
First, the concept of row lock and characteristics

1. Concept: Lock a single row of records, mainly applied to the InnoDB table storage engine

2. Features: in InnoDB storage engine application is more, support transactions, high overhead, locking slow; there will be a deadlock, the size of the lock is small, in the case of concurrency, the probability of the lock waiting is relatively low, so support

A higher number of concurrency.

Second, database services

1. Concept: A transaction is a unit of work that consists of a series of operations that are indivisible, that is, either all are executed, or none are executed.

2. Characteristics: ACID

Atomicity: Transactions are the smallest unit of work, indivisible

Consistency: The data before and after the transaction is guaranteed to be correct and data integrity is not compromised.

Isolation: There is no impact on other transactions when concurrent transactions are executed.

Persistence: Persistent to disk

MySQL lock mechanism--row lock

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.