当前位置:网站首页>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 .
边栏推荐
- Gbase 8s stored procedure syntax structure
- Vigilance against over range collection of privacy - ten mobile app violations
- Laravel document sorting 4. Controller
- Structure syntaxique des procédures stockées gbase 8S
- BSC smart contract dividend mainstream currency | including marketing wallet | deflation | reflow | dividend free token | available for direct deployment
- Laravel document sorting 9. Blade template
- JS arrow function
- Laravel document sorting 2. Route related
- "Renaissance" in the digital age? The bottom digital collection makes people happy and sad
- mongodb集群
猜你喜欢

CTF_ Web:php weak type bypass and MD5 collision

冰冰学习笔记:循环队列的实现

Is opencv open source?

Text keyword extraction: ansj

讲座记录《捷联惯导解算的历史及发展》

关于TCP连接三次握手的详细总结

【openwrt】推荐一个国内开发的openwrt的版本,iStoreOS简介,非常好用,主要是做了一些优化。解决了汉化的问题。

"Renaissance" in the digital age? The bottom digital collection makes people happy and sad

Anaconda installation +tensorflow installation +keras installation +numpy installation (including image and version information compatibility issues)

CTF_ Web: advanced problem WP (5-8) of attack and defense world expert zone
随机推荐
2021.4.15 note the difference between let, const and VaR in ES6
What is the storage engine and the three common database storage engines for MySQL
CTF_ Web: deserialization learning notes (I) classes and objects in PHP
L'épée leetcode fait référence au chemin leetcode de l'offre II 091 pour peindre la maison [planification dynamique] heroding
SQL injection details
Lecture record: history and development of strapdown inertial navigation solution
小白学习MySQL - 统计的'投机取巧'
Laravel document sorting 1. Installation and Preliminary Configuration
GBASE 8s 索引B+树
unity Quad剔除背面并剔除透明部分的shader
How much do you know about the use value of WMS warehouse management system
ThinkPHP is integrated with esaywechat. What's wrong with wechat payment callback without callback?
mysql的tinyint字段类型判断的疑惑
记录小知识点
CTF_ Web: Advanced questions of attack and defense world expert zone WP (1-4)
A-table mouse over the display hand, the current line can be clicked
mongodb集群
Office macro virus bounce shell experiment
关于TCP连接三次握手的详细总结
2020.3.3 notes async/await and promise and Then processes and threads