当前位置:网站首页>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 .
边栏推荐
- If the college entrance examination goes well, I'm already graying out at the construction site at the moment
- Notes of training courses selected by Massey school
- 2021 SASE integration strategic roadmap (I)
- 【vulnhub】presidential1
- Clipboard management tool paste Chinese version
- Article management system based on SSM framework
- Data analysis course notes (III) array shape and calculation, numpy storage / reading data, indexing, slicing and splicing
- Encryption algorithm - password security
- Personal digestion of DDD
- [boutique] Pinia Persistence Based on the plug-in Pinia plugin persist
猜你喜欢
The way of intelligent operation and maintenance application, bid farewell to the crisis of enterprise digital transformation
Geo data mining (III) enrichment analysis of go and KEGG using David database
DAY SIX
X.509 certificate based on go language
Hero League | King | cross the line of fire BGM AI score competition sharing
37 page overall planning and construction plan for digital Village revitalization of smart agriculture
Article management system based on SSM framework
Idea automatically imports and deletes package settings
一图看懂对程序员的误解:西方程序员眼中的中国程序员
AI超清修复出黄家驹眼里的光、LeCun大佬《深度学习》课程生还报告、绝美画作只需一行代码、AI最新论文 | ShowMeAI资讯日报 #07.06
随机推荐
Hero League | King | cross the line of fire BGM AI score competition sharing
[CVPR 2022] target detection sota:dino: Detr with improved detecting anchor boxes for end to end object detection
【YoloV5 6.0|6.1 部署 TensorRT到torchserve】环境搭建|模型转换|engine模型部署(详细的packet文件编写方法)
Business process testing based on functional testing
DAY FOUR
openresty ngx_ Lua subrequest
Use Yum or up2date to install the postgresql13.3 database
微信小程序uploadfile服务器,微信小程序之wx.uploadFile[通俗易懂]
The difference between redirectto and navigateto in uniapp
Typescript incremental compilation
Huawei mate8 battery price_ Huawei mate8 charges very slowly after replacing the battery
dynamic programming
沉浸式投影在线下展示中的三大应用特点
Amazon MemoryDB for Redis 和 Amazon ElastiCache for Redis 的内存优化
Use package FY in Oracle_ Recover_ Data. PCK to recover the table of truncate misoperation
Value Function Approximation
Cross-entrpy Method
Leecode brush questions record sword finger offer 11 Rotate the minimum number of the array
数据运营平台-数据采集[通俗易懂]
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