当前位置:网站首页>Advanced learning of MySQL -- Fundamentals -- concurrency of transactions
Advanced learning of MySQL -- Fundamentals -- concurrency of transactions
2022-07-07 00:34:00 【Magic pig 9898】
What problems will occur when transactions are concurrent :
Dirty reading
A transaction reads data that has not been committed by another transaction
Explain what ?
It means that neither transaction has been committed , The data read must be inaccurate , Non persistent data .
terms of settlement :
You can make transactions concurrent
But one of the slower transactions is before reading data , You must ensure that other concurrent transactions are committed , Otherwise, it is in a state of stagnation .
be called , Read submitted .( At this time, we found that , The problem of dirty reading has been solved )
It can't be read repeatedly
In a transaction , Read the same record successively , But the data read twice is different . Call it non repeatable .
Explain what ?
Explain the business ABC Concurrent , Business A Read the transaction B Data submitted , however A Still running , also A In subsequent operation , There is another operation of reading data , But this time I read it later is C Data submitted . here A I don't understand , How can the data read be inconsistent .
terms of settlement :
Do not allow transactions that process the same data to process the data at the same time , We have to wait for the previous transaction , To allow the next transaction to proceed .
Fantasy reading
When a transaction queries a record , There is no corresponding data , But when inserting , But I can't insert it , Found that this record exists .
Explain what ?
explain , When a transaction wants to insert data into a table , Mingming originally judged that this table did not have this row of data , But it was inserted in advance by another transaction , Cause insertion failure .
terms of settlement :
Transactions that operate on the same table are not concurrent .
边栏推荐
- What can the interactive slide screen demonstration bring to the enterprise exhibition hall
- A way of writing SQL, update when matching, or insert
- GEO数据挖掘(三)使用DAVID数据库进行GO、KEGG富集分析
- GPIO简介
- Command line kills window process
- 刘永鑫报告|微生物组数据分析与科学传播(晚7点半)
- Data operation platform - data collection [easy to understand]
- [2022 the finest in the whole network] how to test the interface test generally? Process and steps of interface test
- Racher integrates LDAP to realize unified account login
- On February 19, 2021ccf award ceremony will be held, "why in Hengdian?"
猜你喜欢

Devops can help reduce technology debt in ten ways

DAY FIVE

基於GO語言實現的X.509證書

Memory optimization of Amazon memorydb for redis and Amazon elasticache for redis

Geo data mining (III) enrichment analysis of go and KEGG using David database

三维扫描体数据的VTK体绘制程序设计

On February 19, 2021ccf award ceremony will be held, "why in Hengdian?"

2022 PMP project management examination agile knowledge points (9)

AI超清修复出黄家驹眼里的光、LeCun大佬《深度学习》课程生还报告、绝美画作只需一行代码、AI最新论文 | ShowMeAI资讯日报 #07.06

Data analysis course notes (V) common statistical methods, data and spelling, index and composite index
随机推荐
48 page digital government smart government all in one solution
On February 19, 2021ccf award ceremony will be held, "why in Hengdian?"
MySQL learning notes (mind map)
What is web penetration testing_ Infiltration practice
Hero League | King | cross the line of fire BGM AI score competition sharing
Value Function Approximation
TypeScript增量编译
What is AVL tree?
【vulnhub】presidential1
System activity monitor ISTAT menus 6.61 (1185) Chinese repair
TypeScript中使用类型别名
C语言输入/输出流和文件操作【二】
基於GO語言實現的X.509證書
Use type aliases in typescript
Encryption algorithm - password security
《LaTex》LaTex数学公式简介「建议收藏」
Oracle EMCC 13.5 environment in docker every minute
stm32F407-------DAC数模转换
2022年PMP项目管理考试敏捷知识点(9)
JS import excel & Export Excel