A lock is a mechanism by which a computer coordinates multiple processes or a purely thread concurrently accessing a resource. in a database, data is a resource that is shared by many users in addition to the contention of traditional computing
MySQL row-level lock, table-level lock, page-level lock details page-level: engine BDB.
Table-level: engine MyISAM, which is interpreted as locking the entire table and reading at the same time.
Row-level: engine INNODB, locking a single row of
MySQL row-level locks, table-level locks, page-level locks, mysql details
Page Level: Engine BDB. Table-level: Engine MyISAM, which is interpreted as locking the entire table. It can be read at the same time but cannot be written at the row level.
Page Level: Engine BDB.Table-level: Engine MyISAM, which is interpreted as locking the entire table and reading at the same time.Row-level: Engine INNODB, locking a single row of records
At the table level, the entire table is locked directly.
Page level: Engine BDB.Table level: Engine MyISAM, understood to lock the entire table, can be read at the same time, write notRow level: Engine INNODB, separate one-line record lock
Table level, locking the entire table directly, and other
page level: Engine BDB. Table level: Engine MyISAM, understood to lock the entire table, you can read at the same time, write No Line level: Engine INNODB, a separate row of record lock table level, directly lock the entire table, during your lock,
Original link: http://www.jb51.net/article/50047.htmPage level: Engine BDB.Table level: Engine MyISAM, understood to lock the entire table, can read at the same time, write NoRow level: Engine INNODB, single row of records plus lockTable level,
In order to better optimize MySQL in high concurrency, it is necessary to understand the locking table mechanism when MySQL query is updated.I. OverviewMySQL has three levels of Lock: page level, table level, row level.MyISAM and MemoryStorageThe
Overview compared to other databases, MySQL's locking mechanism is relatively simple, and its most notable feature is that different storage engines support different locking mechanisms. MySQL can be broadly categorized into the following 3 types of
This article mainly introduces the MySQL row-level lock, table-level lock, page-level lock detailed introduction, while enumerating some examples, the need for friends can refer to the followingPage level: Engine BDB.Table level: Engine MyISAM,
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.