In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The following content mainly gives you an overview of the four isolation levels of mysql database things. the knowledge mentioned here, which is slightly different from books, is summed up by professional and technical personnel in the process of contact with users, and has a certain value of experience sharing. I hope to bring help to the majority of readers.
There are four isolation levels for mysql database transactions, and the default transaction level is' REPEATABLE-READ', which is repeatable. The following article will take you to understand the isolation levels of these four transactions in mysql. I hope it will be helpful to you.
The SQL standard defines four types of isolation levels, including specific rules that define which changes inside and outside the transaction are visible and which are not. Low-level isolation levels generally support higher concurrent processing and have lower system overhead.
Four transaction isolation levels for mysql, as follows:
1. Uncommitted reads (Read Uncommitted): dirty reads are allowed, that is, data modified by uncommitted transactions in other sessions may be read
2. Read Committed: only the data that has been submitted can be read. Most databases, such as Oracle, default to this level (do not repeat)
3. Repeated Read: repeatable. All queries within the same transaction are consistent at the beginning of the transaction, the default level of InnoDB. In the SQL standard, this isolation level eliminates unrepeatable reads, but there are phantom reads, but innoDB solves phantom reads
4. Serial read (Serializable): fully serialized read, each read needs to acquire a table-level shared lock, and reads and writes will block each other.
These are the details of the 4 isolation levels of mysql database transactions. For more information, please follow other related articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.