当前位置:网站首页>【硬记】脏读、不可重复读、幻读场景核心区别
【硬记】脏读、不可重复读、幻读场景核心区别
2022-06-13 07:04:00 【万物皆字节】
我觉得脏读可以单独来看,不可重读和幻读可以对比记忆
脏读
场景
A事务修改了数据,此刻B事务读取到了这个数据,并用这个数据做了逻辑处理;然后A事务由于某种原因把刚刚提交的数据回退了,但是B事务不知道这回事做了正常的事务提交;关注点
脏读引起的一个最大问题就是脏写
不可重复读
场景
A连接一开始查询数据时1,但是后面查询的数据是2,因为中途B连接将数据改成了2,这个时候就是两次查询数据不一致的问题关注点
B连接将A连接能查询到的数做了 修改
幻读
场景
在一个事务的两次查询中数据笔数不一致,例如A事务查询了几列(Row)数据,而另一个B事务却在此时插入了新的几列数据,先前的A事务在接下来的查询中,就会发现有几列数据是它先前所没有的。关注点
B事务在A事务能查询到的数据范围内 新增了数据
对比
不可重复读 关注点在数据修改,幻读 关注点在数据的新增
边栏推荐
- 牙周炎问题调研(持续进行中)
- [Collection des questions d'examen les plus complètes de Tencent Ali] (quatre côtés: 3 tours de technologie + 1 tour de RH)
- 百货中心供应链管理系统
- Raspberry school advanced development - "writing of IO port driver code" includes bus address, physical \u virtual address and bcm2835 chip manual knowledge
- Ansible PlayBook的中清单变量优先级分析及清单变量如何分离总结
- 想进行快速钢网设计,还能保证钢网质量? 来看这里
- How worker threads in the thread pool are recycled
- How to write an amazing design document?
- ISIS的vsys(虚拟系统)
- 如何使用望友DFM軟件進行冷板分析
猜你喜欢

Department store center supply chain management system

What is online blind box e-commerce? Can blind box e-commerce become a new bonus market for the Internet?

Do you want to carry out rapid steel mesh design and ensure the quality of steel mesh? Look here

ML之FE:Vintage曲线/Vintage分析的简介、计算逻辑、案例应用之详细攻略

Yolov5 analysis | parameters and performance indicators

Gold jewelry enterprise operation mode, beautiful tiantians business solution

想进行快速钢网设计,还能保证钢网质量? 来看这里

号称下一代监控系统 来看看它有多牛逼

How to use Wangyou DFM software for cold plate analysis

RT-Thread 模拟器 simulator LVGL控件:button 按钮事件
随机推荐
First day of learning MySQL Basics
我的理财产品显示清算中是什么意思?
June 12, 2022: if there are n*n pieces in an n*n square chessboard, each grid can have exactly one piece. But now some pieces are gathered on a grid, such as 2030100300. The above two-dimensional arra
Implementation of fruit mall wholesale platform based on SSM
When the concept of industrial Internet just appeared, people only regarded it as a method to obtain b-end traffic
Learning notes of MySQL series by database and table
Micro isolation (MSG)
WWDC2022最大的亮点: MetalFX
Tidb execution plan -- II
对绘制丘岭密度图ridge plot的详细说明、重叠核密度估计曲线overlapping densities、FacetGrid对象、函数sns.kdeplot、函数FacetGrid.map
105. constructing binary trees from preorder and inorder traversal sequences
. Net code to implement get request and post request
Chain 2+1 reward, what kind of mode is beautiful everyday seconds?
尝试使用RenderDoc查看UE的Shader代码
What does my financial product mean in clearing?
百货中心供应链管理系统
基于ESP32CAM实现WebSocket服务器实时点灯
Project analysis of Taishan crowdfunding mode: why is Taishan crowdfunding mode so popular?
Xuanwu cloud technology passed the listing hearing: the performance fluctuated significantly, and chenyonghui and other three were the controlling shareholders
【腾讯阿里最全面试题集锦】(四面:3轮技术+1轮HR)