当前位置:网站首页>Dirty reading, unreal reading, non repeatable reading
Dirty reading, unreal reading, non repeatable reading
2022-07-19 02:34:00 【HYYyyying】
Dirty reading
Dirty reading is also called invalid data reading , In database access , Business T1 Modify a value , Then transaction T2 Read the value , thereafter T1 Undo the change to the value for some reason , And that leads to this T2 The data read is invalid , It is worth noting that , Dirty reading is generally aimed at update Operation of the .
Dirty reading is when a transaction is accessing data , And the data has been modified , This modification has not yet been committed to the database , At this time , Another transaction also accesses this data , And then I used this data . Because this data is not submitted yet , Then the data read by another transaction is dirty data , Operations based on dirty data may not be correct .
Fantasy reading
Fantasy reading (Phantom Read), A phenomenon that occurs when a transaction is not executed independently .
Business A Read several lines that match the search criteria . Business B Modify transactions by inserting or deleting rows A The result set , Then submit .
Unreal reading refers to a phenomenon that occurs when a transaction is not executed independently , For example, the first transaction modifies the data in a table , For example, this modification involves “ All data lines ”. meanwhile , The second transaction also modifies the data in this table , This change is to insert... Into the table “ A new line of data ”. that , Later, the user who operates on the first transaction will find that there are still unmodified data rows in the table , It's like an illusion . The general solution to unreal reading is to add range locks RangeS, Lock search scope to read only , This avoids unreal reading .
It can't be read repeatedly
It can't be read repeatedly , In database access , Two identical queries within a transaction scope return different data .
This is caused by the commit of other transaction modifications in the system during query . For example, affairs. T1 Read a data , Business T2 Read and modify the data ,T1 Read the data again in order to verify the read value , And we get different results .
A more understandable statement is : In a business , Read the same data multiple times . Before the end of the business , Another transaction also accesses the same data and modifies the data . that , Between the two readings of the first transaction . Due to the modification of another transaction , It's impossible to read the same data for the first two transactions , This happens that the data read twice in a transaction is different , So it's called unrepeatable reading , That is, the original read is not repeatable .
边栏推荐
- Detailed explanation of metauniverse public chain caduceus: a creative platform specially built for metauniverse application
- flask模板注入
- 种下一颗种子,十年后长成了参天B+树
- Subnet division (see details)
- 【Unity编辑器扩展】快速定位资源和脚本的指定文件和路径
- bugku---game1
- STL -- map container
- 【已解决】参考了本地mysql忘记密码后, [Server] --initialize specified but the data directory has files in it. Aborti
- Next array - circular section
- Signal and system experiment
猜你喜欢

CTFHub----RCE

Attack and defense world - easytornado notes

bugku---game1

元宇宙公链Caduceus项目详解(一):Caduceus Metaverse Protocol的项目理念及技术框架

Unity3D 游戏人物跳跃落地时发生弹跳,偏移情况的解决方法

网络一般知识(详)

Interpretation of concurrent virtual users, RPS and TPS

Post man JSON script to JMX script of JMeter

Network layer protocol and IP packet format (detailed)
![[Ruiji takeout ⑩] rough learning of Linux & rough learning of redis](/img/2f/9788ddea24f090d872ccdf82ccd8d8.png)
[Ruiji takeout ⑩] rough learning of Linux & rough learning of redis
随机推荐
已知先序遍历中序遍历,求树的层序遍历
30分钟搞懂 HTTP 缓存
逻辑漏洞----身份验证漏洞
登录功能的测试点大全
Array Transformer-分块思想
Test points of login function
性能测试实施规范指南
静态路由(详)
Summary of tree and heap knowledge points
Performance bottleneck positioning XMIND
简单的用例编写规范
Project Performance Optimization Practice: solve the white screen problem of the home page, customize the loading animation to optimize the first screen effect
Visual studio 2019-qt debugging
STL -- set container
2022最新软件测试工具大全
Unity导入fbx模型后,运行时物体的旋转和位置自动改变的问题解决方法
转载:SQL注入常见绕过
服务器知识(详情)
Attack and defense the world ---- shrink
【HSJFramework】Unity时间管理TimeManger计时器