当前位置:网站首页>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 .
边栏推荐
- Huawei mate8 battery price_ Huawei mate8 charges very slowly after replacing the battery
- GPIO简介
- Sword finger offer 26 Substructure of tree
- Things like random
- uniapp实现从本地上传头像并显示,同时将头像转化为base64格式存储在mysql数据库中
- Understand the misunderstanding of programmers: Chinese programmers in the eyes of Western programmers
- Wechat applet UploadFile server, wechat applet wx Uploadfile[easy to understand]
- Three sentences to briefly introduce subnet mask
- AI超清修复出黄家驹眼里的光、LeCun大佬《深度学习》课程生还报告、绝美画作只需一行代码、AI最新论文 | ShowMeAI资讯日报 #07.06
- Jenkins' user credentials plug-in installation
猜你喜欢
What can the interactive slide screen demonstration bring to the enterprise exhibition hall
陀螺仪的工作原理
英雄联盟|王者|穿越火线 bgm AI配乐大赛分享
iMeta | 华南农大陈程杰/夏瑞等发布TBtools构造Circos图的简单方法
stm32F407-------DAC数模转换
System activity monitor ISTAT menus 6.61 (1185) Chinese repair
【YoloV5 6.0|6.1 部署 TensorRT到torchserve】环境搭建|模型转换|engine模型部署(详细的packet文件编写方法)
Clipboard management tool paste Chinese version
509 certificat basé sur Go
Hero League | King | cross the line of fire BGM AI score competition sharing
随机推荐
Why should a complete knapsack be traversed in sequence? Briefly explain
SQL的一种写法,匹配就更新,否则就是插入
TypeScript中使用类型别名
基于SSM框架的文章管理系统
QT tutorial: creating the first QT program
Leecode brush question record sword finger offer 58 - ii Rotate string left
华为mate8电池价格_华为mate8换电池后充电巨慢
Use type aliases in typescript
谷歌百度雅虎都是中国公司开发的通用搜索引擎_百度搜索引擎url
@TableId can‘t more than one in Class: “com.example.CloseContactSearcher.entity.Activity“.
Leecode brush questions record sword finger offer 11 Rotate the minimum number of the array
Notes of training courses selected by Massey school
1000 words selected - interface test basis
【YoloV5 6.0|6.1 部署 TensorRT到torchserve】环境搭建|模型转换|engine模型部署(详细的packet文件编写方法)
JWT signature does not match locally computed signature. JWT validity cannot be asserted and should
Typescript incremental compilation
What is a responsive object? How to create a responsive object?
File and image comparison tool kaleidoscope latest download
[CVPR 2022] target detection sota:dino: Detr with improved detecting anchor boxes for end to end object detection
Understand the misunderstanding of programmers: Chinese programmers in the eyes of Western programmers