当前位置:网站首页>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
边栏推荐
- [stc8g2k64s4] introduction of comparator and sample program of comparator power down detection
- Kubernetes详解(十一)——标签与标签选择器
- C language super complete learning route (collection allows you to avoid detours)
- Daily question - leetcode396 - rotation function - recursion
- Sqlserver transaction and lock problem
- January 1, 1990 is Monday. Define the function date_ to_ Week (year, month, day), which realizes the function of returning the day of the week after inputting the year, month and day, such as date_ to
- 8.4 realization of recurrent neural network from zero
- 封面和标题中的关键词怎么写?做自媒体为什么视频没有播放量
- Byte interview programming question: the minimum number of K
- Application of skiplist in leveldb
猜你喜欢

Set onedrive or Google drive as a drawing bed in upic for free

The win10 taskbar notification area icon is missing

Introduction to Arduino for esp8266 serial port function

asp. Net method of sending mail using mailmessage

Brute force of DVWA low -- > High

API gateway / API gateway (III) - use of Kong - current limiting rate limiting (redis)

TLS / SSL protocol details (28) differences between TLS 1.0, TLS 1.1 and TLS 1.2

Nuxt project: Global get process Env information

Advanced version of array simulation queue - ring queue (real queuing)

How to upload large files quickly?
随机推荐
Vscode Chinese plug-in doesn't work. Problem solving
Llvm - generate local variables
Share 20 tips for ES6 that should not be missed
redis-shake 使用中遇到的错误整理
Fill in the next right node pointer II of each node [classical hierarchy traversal | regarded as linked list]
Byte interview programming question: the minimum number of K
Subnet division of flannel principle
8.2 text preprocessing
Async void caused the program to crash
adobe illustrator 菜单中英文对照
我的 Raspberry Pi Zero 2W 折腾笔记,记录一些遇到的问题和解决办法
Application of skiplist in leveldb
Introduction to dirty reading, unrepeatable reading and phantom reading
8.3 language model and data set
API gateway / API gateway (II) - use of Kong - load balancing
asp. Net method of sending mail using mailmessage
博睿数据携手F5共同构建金融科技从代码到用户的全数据链DNA
The life cycle of key value in redis module programming
Five data types of redis
How does eolink help telecommuting