当前位置:网站首页>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
边栏推荐
- like和regexp差别
- 8.2 text preprocessing
- The wechat applet optimizes the native request through the promise of ES6
- Detailed comparison between asemi three-phase rectifier bridge and single-phase rectifier bridge
- UML learning_ Day2
- Design of digital temperature monitoring and alarm system based on DS18B20 single chip microcomputer [LCD1602 display + Proteus simulation + C program + paper + key setting, etc.]
- 我的 Raspberry Pi Zero 2W 折腾笔记,记录一些遇到的问题和解决办法
- Kubernetes详解(九)——资源配置清单创建Pod实战
- Introduction to dirty reading, unrepeatable reading and phantom reading
- Explanation and example application of the principle of logistic regression in machine learning
猜你喜欢
![Detailed explanation of C language knowledge points -- data types and variables [1] - carry counting system](/img/95/3b38a550e78b3467c4a756af073d0a.png)
Detailed explanation of C language knowledge points -- data types and variables [1] - carry counting system

LeetCode162-寻找峰值-二分-数组

Daily question - leetcode396 - rotation function - recursion

Tun model of flannel principle

Have you really learned the operation of sequence table?

On the day of entry, I cried (mushroom street was laid off and fought for seven months to win the offer)

About UDP receiving ICMP port unreachable

Redis主从同步

setcontext getcontext makecontext swapcontext

Differential privacy (background)
随机推荐
每日一题-LeetCode396-旋转函数-递推
[proteus simulation] automatic range (range < 10V) switching digital voltmeter
The wechat applet optimizes the native request through the promise of ES6
Baidu written test 2022.4.12 + programming topic: simple integer problem
Async keyword
分布式事务Seata介绍
C语言超全学习路线(收藏让你少走弯路)
MySQL sync could not find first log file name in binary log index file error
Introduction to distributed transaction Seata
Detailed explanation of C language knowledge points -- data types and variables [1] - carry counting system
Kubernetes详解(十一)——标签与标签选择器
PSYNC synchronization of redis source code analysis
Have you really learned the operation of sequence table?
Leetcode149 - maximum number of points on a line - Math - hash table
Differential privacy (background)
Grep was unable to redirect to the file
A series of problems about the best time to buy and sell stocks
Brute force of DVWA low -- > High
JUC学习记录(2022.4.22)
adobe illustrator 菜單中英文對照