当前位置:网站首页>MySQL - isolation level of transactions
MySQL - isolation level of transactions
2022-06-10 00:58:00 【Xiao Xian.】
Recommended links :
summary ——》【Java】
summary ——》【Mysql】
summary ——》【Spring】
summary ——》【SpringBoot】
One 、 Isolation level definition for transactions
Transaction isolation level refers to the isolation degree of one transaction's modification of data from another parallel transaction .
| Transaction isolation level | describe | Dirty reading | It can't be read repeatedly | Fantasy reading | Lock reading |
|---|---|---|---|---|---|
| Uncommitted read read uncommitted | A transaction can read uncommitted data of other transactions | √ | √ | √ | |
| Read committed read committed | A transaction can only read the committed data of other transactions | √ | √ | ||
| Repeatable repeatable read | A transaction reads the same data multiple times and the result is the same | √ | |||
| Serializable serializable | All transactions are executed serially , There is no concurrent operation of transactions | √ |
Q: The stricter the transaction isolation of the database, the better ?
A: The more strict the transaction isolation of the database , The smaller the concurrent side effects , But the more it costs , Because the essence of transaction isolation is to serialize transactions to a certain extent , You need to decide which isolation level to use according to your specific business needs
Q:oracle Only 2 Transaction isolation levels ?
A: Read committed read committed、 Serializable serializable
Q:Mysql There are several transaction isolation levels ?
A:4 All of them
Two 、Mysql innodb Default transaction isolation level
Default :REPEATABLE-READ
show VARIABLES like 'tx_isolation'

Q:innodb Why use RR As the default transaction isolation level ?
A: because innodb stay RR The level of reading solves the problem of unreal reading .
3、 ... and 、Oracle Default transaction isolation level
Default :read-committed
边栏推荐
- 线性规划和对偶规划学习总结
- Score of sub series of previous test questions and [11th] [provincial competition] [group B]
- Intranet penetration Chapter 4
- 上位机开发——Modbus到底有多快
- If function selection when determining whether it is empty
- Learning notes of zhouzhihua in machine learning
- Rip experiment
- Mysql——》事务的隔离级别
- Blue Bridge Cup · winter vacation hundred schools' real topic league tournament (Phase V) real topic exercise of cargo placement for graduate students and university group A
- 浅谈Cookie 和 Session——含案例及详细注解
猜你喜欢

力扣 无重复字符的最长子串 C语言 题解

1049大盗阿福

Sword finger offer II 013 Sum of two dimensional submatrix

剑指 Offer II 020. 回文子字符串的个数
Solution to C language problem of adding two numbers by force deduction

ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks

1049 robber Ah Fu

MAUI + MVVM + SIEMENS 跨平台应用实战

ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks

OSPF实验
随机推荐
浅谈Cookie 和 Session——含案例及详细注解
BGP协议实验
《Go题库·1》Golang里的数组和切片有了解过吗?
Fix Microsoft app store flash back for win10
1049 robber Ah Fu
Sword finger offer II 018 Valid palindrome
Sword finger offer II 020 Number of palindrome substrings
剑指 Offer II 014. 字符串中的变位词
最低通行费
Collection backup | summary of some common problems about oauth2
C language solution of the longest substring of Li Kou without repeated characters
Solution to C language problems of force buckle rotation string
nn. Modulelist() and nn Sequential()
Republish experiment
Flutter ITMS-90338: Non-public API usage - Frameworks/webview_ flutter_ wkwebview. framework
WPS how to adjust the position of text after merging cells
第6章域控制器安全
Hcip day 1 Summary
shell eval用法详解 命令替换
Bubble sorting and optimization clear and intuitive C language