当前位置:网站首页>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 索引R树
- IntStream API介绍
- UCLA | generative pre training for black box optimization
- LeetCode 剑指Offer II 091 粉刷房子[动态规划] HERODING的LeetCode之路
- 2021.8.29 notes: register, bit operation, pointer, structure
- Openmmlab environment configuration
- Read lsd-slam: large scale direct monolithic slam
- Text keyword extraction: ansj
- kenlm
- GBASE 8s的级联删除功能
猜你喜欢

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

论文笔记: 多标签学习 ESMC (没看懂, 还没写出来, 暂时放这里占个位置)

navicat可不可以直接操作安卓数据库SQLite

EasyRecovery15非常好用的电脑数据恢复软件

Is opencv open source?

什么是存储引擎以及MySQL常见的三种数据库存储引擎

CTF_ Web:8-bit controllable character getshell

Easyrecovery15 very easy to use computer data recovery software

Musk released humanoid robot. Why is AI significant to musk?

Acmstreamopen return value problem
随机推荐
GBase 8s的封锁技术的基本介绍
GBASE 8s的包
CTF_ Web: basic 12 questions WP of attack and defense world novice zone
GBASE 8s的级联删除功能
[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.
GbASE 8s中的Blob 页(Blobspace page)
Laravel document sorting 8. Middleware
CTF_ Web: deserialization learning notes (I) classes and objects in PHP
Vigilance against over range collection of privacy - ten mobile app violations
Synchronous and asynchronous functions (callback function, promise, generator, async/await)
Nodejs 通过Heidisql连接mysql出现ER_BAD_DB_ERROR: Unknown database 'my_db_books'
Sourcetree pulls the code and prompts to fill in authentic, but the configuration cannot change the user
GBASE 8s 索引B+树
小白学习MySQL - 统计的'投机取巧'
Introduction to intstream API
彻底理解数据库事务
【LeetCode】22. bracket-generating
论文笔记: 多标签学习 ESMC (没看懂, 还没写出来, 暂时放这里占个位置)
Text keyword extraction: ansj
How to draw an industry investment map