当前位置:网站首页>Blocking granularity of gbase 8s concurrency control
Blocking granularity of gbase 8s concurrency control
2022-04-23 01:22:00 【Eight delicacies tofu】
Blocking granularity Also become a lock Object or lock range , Indicates the scope of the blockade , for example , A lock on a record only applies to that record , A lock on a relationship applies to all records in that relationship .
so , The amount of data involved in blocking is different with different blocking granularity .
The higher the level of blocking objects , The larger the amount of data involved . The stronger the blockade , Such as blocking the whole database , All relationships in the database will be 、 The records are blocked , The ability of the system to handle a single transaction is stronger , The system overhead is relatively small , however , The concurrency of the system will be reduced , The ability to handle concurrent transactions will weaken .
conversely , The smaller the blocking granularity , For example, block a single table or record , The concurrency of the system will be higher , The higher the system overhead .
GBase 8s The lock mechanism can lock different Granularity objects , In a system, it is ideal to have blocking units of different sizes for different transactions at the same time .
Comprehensive, , The higher the locking force, the lower the concurrency , such as An exclusive lock Lock database , Other users cannot connect to the database . conversely , If you monopolize a table A line Record , Then other users can access ( Read 、 modify ) Other records , therefore , Multi user system requirements High concurrency In the case of an interview , Try to use Low granularity locks , If Row-level locks , If the system requires less concurrency , Or do some administrative affairs ( Database Reconstruction 、 Table reconstruction ), In order to obtain higher performance , High granularity locks can be used .
版权声明
本文为[Eight delicacies tofu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230117221845.html
边栏推荐
- Initial experience of talent plan learning camp: communication + adhering to the only way to learn open source collaborative courses
- Small example of gin - get request 1-handle handles get requests
- Gbase 8s fragment table management operation
- Gbase 8s 并发控制之粒度锁介绍
- Analysis of uboot directory structure
- GPT general timer analysis and configuration process of imx6ull bare metal development
- GBASE 8s 并发控制之封锁操作
- 智能手表的下半场,机遇与挑战并存
- On regular expression matching cryptography
- Introduction to gbase 8s checkpoint
猜你喜欢

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

Cai Guoqiang's fireworks NFT debut is as wonderful as fireworks during the day

Learning of gin framework -- golang

Design and application of intelligent lighting control system in hospital

App中使用微信公众号的模版消息来进行消息推送

代码实现发邮件---sendemails

Configuration of imx6ull bare metal development analysis and configuration process of elcdif lighting RGB LCD
![[HCTF 2018]admin](/img/08/8111f2f87796dda8dd6b0dcf72c42b.png)
[HCTF 2018]admin

gin -get请求的小示例1-Handle处理GET请求

Application of acrel-3200 remote prepaid electric energy management system in Fuzhou Wanbao Industrial Park
随机推荐
Thingskit Internet of things platform
IMX6ULL裸机开发之EPIT周期性定时器分析及配置过程
Gbase 8s shared memory segment deletion
[actf2020 freshman competition]
Detailed explanation of Milvus 2.0 quality assurance system
Cai Guoqiang's fireworks NFT debut is as wonderful as fireworks during the day
gin -get请求的小示例1-Handle处理GET请求
JD side: how can a child thread get the value of the parent thread ThreadLocal? I got...
Gbase 8s fragment table management operation
Error: permissionerror: [winerror 32] this file is in use by another program and cannot be accessed by the process. Solution of "+ file path"
Is it difficult for girls to learn software testing?
Text justify, orientation, combine text attributes
Workplace PUA, five sins of managers
.NET(C#) MySQL conn.Open()报错:SSL Connection error的解决方法
[JS] realize the export of PDF from the specified area of the web page
代码实现发邮件---sendemails
光猫超级帐号密码,重置光猫获取超级帐号密码
计蒜客:数独(DFS)
What kind of project is suitable for automated testing?
World reading day: 18 it books with Douban score above 9.0 are worth collecting