当前位置:网站首页>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 .
边栏推荐
- Intel 13th generation core showed its true colors for the first time: 68mb cache improved significantly
- @Requestbody solution get parameter is null
- [openwrt] we recommend a domestically developed version of openwrt, an introduction to istoreos. It is very easy to use. It is mainly optimized. It solves the problem of Sinicization.
- Easyrecovery15 very easy to use computer data recovery software
- 马斯克发布人形机器人,AI对马斯克为什么意义重大?
- ThinkPHP is integrated with esaywechat. What's wrong with wechat payment callback without callback?
- 关于TCP连接四次握手(或者叫四次挥手)的详细总结
- CTF_ Web: how to recognize and evaluate a regular expression
- 关于TCP连接三次握手的详细总结
- What is persistence? What are RDB and AOF in redis persistence?
猜你喜欢

Failed to install redis interface

What is the storage engine and the three common database storage engines for MySQL

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

Vigilance against over range collection of privacy - ten mobile app violations

Numpy NP tips: use OpenCV to interpolate and zoom the array to a fixed shape cv2 resize(res, dsize=(64, 64), interpolation=cv2. INTER_ CUBIC)

Finereport (sail soft) handling the problem that the histogram data label is blocked

1、项目第二阶段——用户注册和登陆

简单的恶意样本行文分析-入门篇

5 key indicators of SEO: ranking + traffic + session + length of stay + bounce rate

A detailed summary of four handshakes (or four waves) over TCP connections
随机推荐
GBASE 8S内存管理
Acmstreamopen return value problem
SQL注入详解
讲座记录《多种空间大地测量技术的数据处理方法和应用》
冰冰学习笔记:循环队列的实现
单元测试覆盖率
1、项目第二阶段——用户注册和登陆
【LeetCode】148. Sort linked list
GBASE 8s的隔离级别介绍
关于TCP连接三次握手的详细总结
CTF_ Web: Advanced questions of attack and defense world expert zone WP (15-18)
Win10 environment phpstudy2016 startup failure record
Intel 13th generation core showed its true colors for the first time: 68mb cache improved significantly
Text keyword extraction: ansj
CTF_ Web: Advanced questions of attack and defense world expert zone WP (1-4)
CTF_ Web: deserialization learning notes (I) classes and objects in PHP
Finereport (sail soft) handling the problem that the histogram data label is blocked
Laravel document sorting 7. View
openmmlab-环境配置
sql_ mode=only_ full_ group_ By's pit