当前位置:网站首页>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 .
边栏推荐
- Data analysis course notes (V) common statistical methods, data and spelling, index and composite index
- AI超清修复出黄家驹眼里的光、LeCun大佬《深度学习》课程生还报告、绝美画作只需一行代码、AI最新论文 | ShowMeAI资讯日报 #07.06
- AI super clear repair resurfaces the light in Huang Jiaju's eyes, Lecun boss's "deep learning" course survival report, beautiful paintings only need one line of code, AI's latest paper | showmeai info
- PXE server configuration
- Pdf document signature Guide
- Idea automatically imports and deletes package settings
- The way of intelligent operation and maintenance application, bid farewell to the crisis of enterprise digital transformation
- Operation test of function test basis
- Personal digestion of DDD
- 三维扫描体数据的VTK体绘制程序设计
猜你喜欢
三维扫描体数据的VTK体绘制程序设计
DAY THREE
48 page digital government smart government all in one solution
509 certificat basé sur Go
陀螺仪的工作原理
Basic information of mujoco
Pytest multi process / multi thread execution test case
互动滑轨屏演示能为企业展厅带来什么
Data analysis course notes (V) common statistical methods, data and spelling, index and composite index
基于GO语言实现的X.509证书
随机推荐
Data operation platform - data collection [easy to understand]
VTK volume rendering program design of 3D scanned volume data
GPIO简介
Racher integrates LDAP to realize unified account login
《LaTex》LaTex数学公式简介「建议收藏」
Leecode brush question record sword finger offer 56 - ii Number of occurrences of numbers in the array II
48页数字政府智慧政务一网通办解决方案
1000 words selected - interface test basis
工程师如何对待开源 --- 一个老工程师的肺腑之言
GPIO簡介
[daily problem insight] prefix and -- count the number of fertile pyramids in the farm
Things like random
Wechat applet UploadFile server, wechat applet wx Uploadfile[easy to understand]
ldap创建公司组织、人员
A way of writing SQL, update when matching, or insert
Pinia module division
TypeScript增量编译
【vulnhub】presidential1
js导入excel&导出excel
DAY THREE