In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces Mysql how to achieve transaction isolation, the article is very detailed, has a certain reference value, interested friends must read it!
1. Each record will record a rollback operation when it is updated.
2. There can be multiple versions of the same record in the system, which is the multi-version concurrency control (MVCC) of the database.
3. At the level of read submitted, the latest snapshot of the current data will be obtained through MVCC.
Example
1. Select count (1) from user where age=20;-- return 0: currently there is no 2. Update user set name=test where age=20;-- Affects 10 rows of age=20: because transaction B has just written 10 age=20 records, and the write operation is not affected by MVCC, you can see the latest data, so the update is successful. Once the operation is successful, the data being operated will be visible to the current transaction. Select count (1) from user where age=20 -- return 10: there are illusions. These are all the contents of the article "how does Mysql achieve transaction isolation?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.