当前位置:网站首页>Gbase 8s parallel operation problem scenario description
Gbase 8s parallel operation problem scenario description
2022-06-25 04:32:00 【Eight delicacies tofu】
The common ways for databases to read data in parallel are 3 A problem scenario : Dirty reading (Dirty Read)、 It can't be read repeatedly (Non-repeatable Read) And phantom reading (Phantom Read).
1. Dirty reading problem
Dirty reading is a transaction T2 Transaction read T1 Results not submitted , The result may be rolled back .
Examples are as follows : Business T1 Read records , Then update the record ; Business T2 Read the updated record ; Business T1 Subsequent operations of may fail , Causes the updated record to roll back ; At the same time , Business T2 An inaccurate or uncommitted value is used . If the transaction is serial , The expected situation is : If T1 Failure , be T2 The value before the update will be applied .
2. Unrepeatable read problem
It can't be read repeatedly : If the transaction T2 Multiple read operations in the return different results , It is called non repeatable reading .
Examples are as follows : Business T2 Read an object ; Business T1 Update the same object ; Business T2 Read the same object again , But read a new modified value ; If the transaction is serial , The expected situation is : If the transaction is read-only , The result of each reading is consistent .
3. Phantom reading problem
Phantom reading : Similar to non repeatable reading , Business T2 Execute multiple times in the same case SELECT The results read are different .
Examples are as follows : Business T2 Retrieving records for a specific condition from a table returns m Bar record ; Business T1 To the table insert/delete Other records that meet the same conditions ; Business T2 Retrieve the data of the table again under the same conditions , Will return <>M Bar record ; If the transaction is serial , The expected situation is : The first time within a transaction 、 The second query should return the same result set .
边栏推荐
- Doubts about judging the tinyint field type of MySQL
- 2020.3.3 notes async/await and promise and Then processes and threads
- BSC smart contract dividend mainstream currency | including marketing wallet | deflation | reflow | dividend free token | available for direct deployment
- kenlm
- Can Navicat directly operate the Android database SQLite
- How to screen out words related to products and eliminate invalid words accurately
- Smart contract learning materials
- Numpy NP tips: squeeze and other processing of numpy arrays
- PHP extracts and analyzes table contents, and collects bidding information
- CTF_ Web: Learn flask template injection (SSTI) from 0
猜你喜欢
Zoran community

地方/園區產業規劃之 “ 如何進行產業定比特 ”

记录小知识点

GBASE 8s 索引B+树

Where is the red area of OpenCV?

UCLA | 用于黑盒优化的生成式预训练

i. Max development board learning record

"Comment positionner l'industrie" dans la planification industrielle locale / parc

English Grammar - pronunciation rules

Can Navicat directly operate the Android database SQLite
随机推荐
Laravel document sorting 2. Route related
English Grammar - pronunciation rules
GBASE 8s的并行操作问题场景描述
Smart contract learning materials
How much do you know about the use value of WMS warehouse management system
Structure syntaxique des procédures stockées gbase 8S
彻底理解数据库事务
Anaconda installation +tensorflow installation +keras installation +numpy installation (including image and version information compatibility issues)
php封装curl发送get、post请求方法,并使用
第二十五周记录
OBS Browser+浏览器的基本使用
Finereport (sail soft) handling the problem that the histogram data label is blocked
1280_ C language to find the average value of two unsigned integer
小白学习MySQL - 统计的'投机取巧'
2021.8.29 notes: register, bit operation, pointer, structure
PostgreSQL数据库WAL——RM_HEAP_ID日志记录动作
@Requestbody solution get parameter is null
论文笔记: 多标签学习 ESMC (没看懂, 还没写出来, 暂时放这里占个位置)
SQL注入详解
A-table mouse over the display hand, the current line can be clicked