Understanding MySQL locks (1) Overview

Source: Internet
Author: User

For other data centers, MySQL provides a host-specific mechanism.The most important feature is that different memory engines support different memory systems.But in general, MySQL memory engines use three types of memory customization:Rows are sorted, sorted, and sorted.. Among them, MyISAM mainly uses the table sequence, while the row sequence is mainly used InnoDB.

 


 ① Table crashes: the startup speed is small, and the acceleration speed is fast. No dead ends may occur. The granularity is large, and the probability of sudden bursts is the highest and the degree of occurrence is the lowest. 
 (2) rows: Large Opening and slow loading; dead ends may occur; minimum granularity, minimum probability of abrupt occurrence, and highest degree of occurrence. 
     ③ too many labels: the time between the start and end operations is between the table sequence and the row sequence. There will be dead rows. The granularity is determined between the table sequence and the row sequence, general concurrency  
Each lock is designed based on its own application scenarios. Table locks may be suitable for Web applications, while row-level locks may be more suitable for OLTP systems.


 

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.