当前位置:网站首页>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


useridnameageiduseridnameageWhether 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
边栏推荐
- async void 导致程序崩溃
- Lotus DB design and Implementation - 1 Basic Concepts
- Nuxt project: Global get process Env information
- SQLSERVER事物与锁的问题
- 牛客网数据库SQL实战详细剖析(26-30)
- Introduction to dirty reading, unrepeatable reading and phantom reading
- HJ31 单词倒排
- LeetCode165-比较版本号-双指针-字符串
- API gateway / API gateway (III) - use of Kong - current limiting rate limiting (redis)
- Realization of four data flow modes of grpc based on Multilingual Communication
猜你喜欢

我的 Raspberry Pi Zero 2W 折腾笔记,记录一些遇到的问题和解决办法

LeetCode149-直线上最多的点数-数学-哈希表

1n5408-asemi rectifier diode

Redis主从同步

Thinkphp5 + data large screen display effect

分享 20 个不容错过的 ES6 的技巧

LeetCode165-比较版本号-双指针-字符串

Differential privacy (background)

Leetcode151 - invert words in string - String - simulation

8.5 concise implementation of cyclic neural network
随机推荐
博睿数据携手F5共同构建金融科技从代码到用户的全数据链DNA
How does eolink help telecommuting
买卖股票的最佳时机系列问题
JUC learning record (2022.4.22)
eolink 如何助力遠程辦公
On the day of entry, I cried (mushroom street was laid off and fought for seven months to win the offer)
Design of digital temperature monitoring and alarm system based on DS18B20 single chip microcomputer [LCD1602 display + Proteus simulation + C program + paper + key setting, etc.]
UML学习_day2
Leetcode149 - maximum number of points on a line - Math - hash table
TLS / SSL protocol details (28) differences between TLS 1.0, TLS 1.1 and TLS 1.2
我的树莓派 Raspberry Pi Zero 2W 折腾笔记,记录一些遇到的问题和解决办法
[thymeleaf] handle null values and use safe operators
大文件如何快速上传?
8.5 concise implementation of cyclic neural network
Analysis of common storage types and FTP active and passive modes
Adobe Illustrator menu in Chinese and English
Leetcode167 - sum of two numbers II - double pointer - bisection - array - Search
About UDP receiving ICMP port unreachable
[proteus simulation] automatic range (range < 10V) switching digital voltmeter
Have you learned the basic operation of circular queue?