当前位置:网站首页>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
边栏推荐
- My raspberry PI zero 2W tossing notes record some problems encountered and solutions
- 让阿里P8都为之着迷的分布式核心原理解析到底讲了啥?看完我惊了
- The difference between having and where in SQL
- 脏读、不可重复读和幻读介绍
- UML学习_day2
- Sqlserver transaction and lock problem
- LeetCode165-比较版本号-双指针-字符串
- A series of problems about the best time to buy and sell stocks
- 分布式事务Seata介绍
- MySQL Basics
猜你喜欢
8.2 text preprocessing
LeetCode149-直线上最多的点数-数学-哈希表
Differential privacy (background)
Advanced version of array simulation queue - ring queue (real queuing)
eolink 如何助力远程办公
Detailed explanation of C language knowledge points - data types and variables [2] - integer variables and constants [1]
Leetcode149 - maximum number of points on a line - Math - hash table
My raspberry PI zero 2W toss notes to record some problems and solutions
如何设计一个良好的API接口?
中富金石财富班29800效果如何?与专业投资者同行让投资更简单
随机推荐
For 22 years, you didn't know the file contained vulnerabilities?
8.3 language model and data set
Introduction to distributed transaction Seata
JS -- realize click Copy function
Redis主从同步
JS - implémenter la fonction de copie par clic
Share 3 tools, edit 5 works at home and earn more than 400
Flink DataStream 类型系统 TypeInformation
中富金石财富班29800效果如何?与专业投资者同行让投资更简单
Is asemi ultrafast recovery diode interchangeable with Schottky diode
JUC learning record (2022.4.22)
Set onedrive or Google drive as a drawing bed in upic for free
Go basic reflection
1990年1月1日是星期一,定义函数date_to_week(year,month,day),实现功能输入年月日后返回星期几,例如date_to_week(2020,11,1),返回:星期日。 提示:
Async void caused the program to crash
SQL中HAVING和WHERE的区别
API gateway / API gateway (III) - use of Kong - current limiting rate limiting (redis)
TLS / SSL protocol details (30) RSA, DHE, ecdhe and ecdh processes and differences in SSL
免费在upic中设置OneDrive或Google Drive作为图床
调度系统使用注意事项