当前位置:网站首页>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 .
边栏推荐
- 2022/2/12 summary
- 谷歌百度雅虎都是中国公司开发的通用搜索引擎_百度搜索引擎url
- Leecode brushes questions and records interview questions 01.02 Determine whether it is character rearrangement for each other
- TypeScript增量编译
- 509 certificat basé sur Go
- Use mujoco to simulate Cassie robot
- 陀螺仪的工作原理
- Pinia module division
- The programmer resigned and was sentenced to 10 months for deleting the code. Jingdong came home and said that it took 30000 to restore the database. Netizen: This is really a revenge
- Policy Gradient Methods
猜你喜欢

The way of intelligent operation and maintenance application, bid farewell to the crisis of enterprise digital transformation

Designed for decision tree, the National University of Singapore and Tsinghua University jointly proposed a fast and safe federal learning system

2022/2/12 summary

Mujoco Jacobi - inverse motion - sensor

基于SSM框架的文章管理系统

Testers, how to prepare test data

37 pages Digital Village revitalization intelligent agriculture Comprehensive Planning and Construction Scheme

The difference between redirectto and navigateto in uniapp

从外企离开,我才知道什么叫尊重跟合规…

Data analysis course notes (III) array shape and calculation, numpy storage / reading data, indexing, slicing and splicing
随机推荐
TypeScript增量编译
PostgreSQL highly available repmgr (1 master 2 slave +1witness) + pgpool II realizes master-slave switching + read-write separation
Win10 startup error, press F9 to enter how to repair?
Uniapp uploads and displays avatars locally, and converts avatars into Base64 format and stores them in MySQL database
Hero League | King | cross the line of fire BGM AI score competition sharing
Command line kills window process
JWT signature does not match locally computed signature. JWT validity cannot be asserted and should
Huawei mate8 battery price_ Huawei mate8 charges very slowly after replacing the battery
MySQL learning notes (mind map)
一图看懂对程序员的误解:西方程序员眼中的中国程序员
Designed for decision tree, the National University of Singapore and Tsinghua University jointly proposed a fast and safe federal learning system
Business process testing based on functional testing
Markov decision process
[automated testing framework] what you need to know about unittest
C语言输入/输出流和文件操作【二】
Pinia module division
专为决策树打造,新加坡国立大学&清华大学联合提出快速安全的联邦学习新系统
Quaternion attitude calculation of madgwick
37頁數字鄉村振興智慧農業整體規劃建設方案
uniapp实现从本地上传头像并显示,同时将头像转化为base64格式存储在mysql数据库中