In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces what are the data inconsistencies caused by concurrent operations, which can be used for reference. I hope you can learn a lot after reading this article. Let's take a look at it.
There are three types of data inconsistencies caused by concurrent operations: missing modifications, non-repeatable reading and reading "dirty" data. The method and technology to avoid inconsistency is concurrency control, and the most commonly used technology is blocking technology; other technologies can also be used, such as timestamp method can be used for concurrency control in distributed database systems.
There are three types of data inconsistencies caused by concurrent operations: missing modifications, non-repeatable reading and reading "dirty" data.
1. Lost modification (Lost Update)
Two transactions T1 and T2 read the same data and modified, and the result of T2 commit destroyed (overwritten) the result of T1 commit, resulting in T1 modification being lost.
2. Non-repeatable (Non-Repeatable Read)
Non-repeatable read means that after transaction T1 reads data, transaction T2 performs an update operation so that T1 cannot reproduce the result of the previous read.
3. Read "dirty" data (Dirty Read)
Reading "dirty" data means that transaction T1 modifies a certain data and writes it back to disk. After transaction T2 reads the same data, T1 is revoked for some reason, at this time, the modified data of T1 is restored, and the data read by T2 is inconsistent with the data in the database, then the data read by T2 is "dirty" data, that is, incorrect data.
What can be done to avoid all kinds of inconsistencies?
The method and technology to avoid inconsistency is concurrency control, and the most commonly used technology is blocking technology; other technologies can also be used, such as timestamp method can be used for concurrency control in distributed database systems.
Thank you for reading this article carefully. I hope the article "what are the data inconsistencies caused by concurrent operations" shared by the editor will be helpful to everyone? at the same time, I also hope that you will support and pay attention to the industry information channel. more related knowledge is waiting for you to learn!
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.