当前位置:网站首页>Blocking type of gbase 8s concurrency control
Blocking type of gbase 8s concurrency control
2022-04-23 01:20:00 【Eight delicacies tofu】
Follow the lock Patterns of behavior , Can be 8s The middle lock is divided into : Shared lock 、 Exclusive lock 、 Lifting lock Three types of .
Shared lock [ Read the lock 、S lock ]
Shared lock , It can prevent other users from modifying records . But you can share locks on the data object at the same time & Intent locks . Only after the data is released from all shared locks , Before you can lock it up .
Apply realistic examples : There are many teachers' blackboard writing on the blackboard in the classroom , Each student takes notes while reading , No one wants a troublemaker to alter on the blackboard , This will cause the things in the past to be messy . So when everyone is looking at the blackboard , Everyone declares that no one is allowed to change now 【 Write lock 】. But you can tell us in advance what you want to change 【 Intent locks 】, But if you want to read blackboard , Then you have to join us 【 Shared lock 】.
Exclusive lock [ Write lock 、X lock ]
Exclusive lock , Used to manage and update , It can also be called exclusive lock , Be on X Lock data , Only lock transactions are allowed to read and write to them .
Lifting lock [ Intent locks 、U lock ]
Indicates that the transaction has the intention to modify the record , It is a transitional type of lock , Will be U lock Up to the X lock , If some data has U lock , Only other data can be on this transaction S lock .
summary : Write locks do not coexist with any locks 、 Read lock can coexist with read lock , There can only be one Lifting lock .
ps: I don't know the word lock after writing these introductions of lock .
版权声明
本文为[Eight delicacies tofu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230117221886.html
边栏推荐
- GBASE 8s并发控制之封锁类型
- GPT general timer analysis and configuration process of imx6ull bare metal development
- Introduction to gbase 8s storage structure and space management
- 直播软件|IPTV直播软件|电视直播|TVPlayer-IPTV-EasyPlayer|友窝直播|超级直播软件定制开发
- [server data recovery] data recovery case of server crash after the hard disk of the server is flooded
- Get in the car, the era of intelligent database autonomy has come, and Tencent cloud database x AI has made a new breakthrough
- Acrel-5000型建筑能耗监测系统在西咸空港花园项目的研究与应用
- [JS] realize the export of PDF from the specified area of the web page
- 200. Number of islands
- Basic knowledge of software testing (detailed version) collection of this article is enough
猜你喜欢

GPT general timer analysis and configuration process of imx6ull bare metal development

Innovative practice of short video content understanding and generation technology in meituan

Project manager's thinking mode worth trying: project success equation

200. Number of islands

JD side: comment un thread enfant obtient - il la valeur de threadlocal du thread parent? Je suis couvert...

Text justify, orientation, combine text attributes

gin框架的学习--golang

Detailed explanation of the usage of C language getchar

In the second half of the smart watch, opportunities and challenges coexist

Thingskit Internet of things platform
随机推荐
[the first contact between Android engineers and smart home products ③] the specific implementation of smartconfig one key distribution network on the hardware side | the specific implementation of es
Articles for May
再谈被动安全 教你看懂中保研碰撞测试的评级报告
Basic knowledge of software testing (detailed version) collection of this article is enough
JD side: comment un thread enfant obtient - il la valeur de threadlocal du thread parent? Je suis couvert...
Is 2022 software testing easy to learn? How long will it take? (learning roadmap attached)
Small example of gin - get request 1-handle handles get requests
GBASE 8s分片表管理操作
tdengine集群安装部署
Get rid of the "small workshop" of AI production: how to build a cloud native AI platform based on kubernetes
Research and application of power monitoring system in sports training center
Function encapsulation such as addition, deletion, modification and query of linked list (summary)
那些咸鱼上买来的代码|ssm酒店客房管理系统|买来的源码是否真的可以使用|来自程序员的困惑|玉念聿辉|大丑村吴明辉
After ten years of testing experience, I have sorted out the most suitable software testing learning guide for you
[server data recovery] data recovery case of server crash after the hard disk of the server is flooded
Tdengine deployment cluster installation
In the second half of the smart watch, opportunities and challenges coexist
Yunrong technology joined the dragon dragon dragon community to help the digital transformation of the financial industry
IMX6ULL裸机开发之GPT通用定时器分析及配置过程
Android本地数据库基础操作|多线程操作数据库|数据库的增删改查|批量插入数据库|线程池基础使用|玉念聿辉