当前位置:网站首页>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 .
边栏推荐
- Use package FY in Oracle_ Recover_ Data. PCK to recover the table of truncate misoperation
- Leecode brush question record sword finger offer 56 - ii Number of occurrences of numbers in the array II
- Common shortcuts to idea
- Introduction au GPIO
- 2022/2/12 summary
- What is a responsive object? How to create a responsive object?
- Pinia module division
- PostgreSQL uses pgpool II to realize read-write separation + load balancing
- vector的使用方法_vector指针如何使用
- uniapp实现从本地上传头像并显示,同时将头像转化为base64格式存储在mysql数据库中
猜你喜欢

2022年PMP项目管理考试敏捷知识点(9)

How to set encoding in idea

Lombok 同时使⽤ @Data 和 @Builder 的坑,你中招没?

uniapp中redirectTo和navigateTo的区别

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

2022/2/12 summary

ldap创建公司组织、人员

What can the interactive slide screen demonstration bring to the enterprise exhibition hall

Imeta | Chen Chengjie / Xia Rui of South China Agricultural University released a simple method of constructing Circos map by tbtools

Understand the misunderstanding of programmers: Chinese programmers in the eyes of Western programmers
随机推荐
After leaving a foreign company, I know what respect and compliance are
DAY SIX
37 pages Digital Village revitalization intelligent agriculture Comprehensive Planning and Construction Scheme
How can computers ensure data security in the quantum era? The United States announced four alternative encryption algorithms
Hero League | King | cross the line of fire BGM AI score competition sharing
数据运营平台-数据采集[通俗易懂]
Model-Free Control
How to judge whether an element in an array contains all attribute values of an object
@TableId can‘t more than one in Class: “com.example.CloseContactSearcher.entity.Activity“.
Data operation platform - data collection [easy to understand]
Supersocket 1.6 creates a simple socket server with message length in the header
工程师如何对待开源 --- 一个老工程师的肺腑之言
Command line kills window process
【CVPR 2022】半监督目标检测:Dense Learning based Semi-Supervised Object Detection
华为mate8电池价格_华为mate8换电池后充电巨慢
什么是响应式对象?响应式对象的创建过程?
Racher integrates LDAP to realize unified account login
AI超清修复出黄家驹眼里的光、LeCun大佬《深度学习》课程生还报告、绝美画作只需一行代码、AI最新论文 | ShowMeAI资讯日报 #07.06
Clipboard management tool paste Chinese version
[automated testing framework] what you need to know about unittest