当前位置:网站首页>MySQL InnoDB transaction
MySQL InnoDB transaction
2022-04-23 15:09:00 【InfoQ】
Business ACID characteristic
What problems do transaction concurrency bring
Dirty reading

- Business B to update id=1 The data of ,age Updated to 18, Do not commit transaction
- Business A Inquire about id=1 The data of
- Business B Rollback the update operation just now
It can't be read repeatedly

- Business A Inquire about id=1 The data of
- Business B to update id=1 The data of ,age Updated to 18, And commit the transaction
- Business A Query again id=1 The data of
Fantasy reading

- Business A Inquire about age>15 The data of
- Business B Add a piece of data ,age=22, And commit the transaction
- Business A Query again age>15 The data of
There are four levels of transaction isolation
InnoDB The degree to which the engine supports the isolation level


user
id
name
age
id
user
id
name
age
Whether the problem of dirty reading has been solved ?

- Business B Turn on manual transactions , to update id=1 The data of ,age Updated to 18, Do not commit transaction
- Business A Inquire about id=1 The data of
- Business B Rollback the update operation just now

Whether the problem of non repeatable reading has been solved ?

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231408164896.html
边栏推荐
- ffmpeg安装遇错:nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.
- LeetCode153-寻找旋转排序数组中的最小值-数组-二分查找
- Reptile exercises (1)
- Flink datastream type system typeinformation
- The difference between having and where in SQL
- What is the role of the full connection layer?
- Error: unable to find remote key "17f718f726"“
- 22年了你还不知道文件包含漏洞?
- 脏读、不可重复读和幻读介绍
- Three uses of kprobe
猜你喜欢
Analysis of common storage types and FTP active and passive modes
My raspberry PI zero 2W tossing notes record some problems encountered and solutions
Mds55-16-asemi rectifier module mds55-16
UML learning_ Day2
Have you really learned the operation of sequence table?
How to upload large files quickly?
我的 Raspberry Pi Zero 2W 折腾笔记,记录一些遇到的问题和解决办法
Openfaas practice 4: template operation
LeetCode162-寻找峰值-二分-数组
Leetcode167 - sum of two numbers II - double pointer - bisection - array - Search
随机推荐
HJ31 单词倒排
The win10 taskbar notification area icon is missing
Detailed comparison between asemi three-phase rectifier bridge and single-phase rectifier bridge
adobe illustrator 菜單中英文對照
Byte interview programming question: the minimum number of K
adobe illustrator 菜单中英文对照
When splicing HQL, the new field does not appear in the construction method
LeetCode165-比较版本号-双指针-字符串
Redis cluster principle
Nuxt project: Global get process Env information
Realization of four data flow modes of grpc based on Multilingual Communication
thinkphp5+数据大屏展示效果
分布式事务Seata介绍
LeetCode149-直线上最多的点数-数学-哈希表
分享 20 个不容错过的 ES6 的技巧
Alexnet model
LeetCode162-寻找峰值-二分-数组
JS - implémenter la fonction de copie par clic
Nacos程序连接MySQL8.0+ NullPointerException
My raspberry PI zero 2W tossing notes record some problems encountered and solutions