当前位置:网站首页>Concurrency control of performance tuning methodology
Concurrency control of performance tuning methodology
2022-07-05 21:58:00 【Short section senior】
Locks and transactions
lock
Business
Indivisibility (Atomicity)
Uniformity (Consistency)
Isolation, (Isolation)
persistence (Durability)
Concurrent
The transaction isolation
Uncommitted read
Read committed
Repeatable
serialize
Read commit snapshot
snapshot
Lock upgrade granularity
That's ok
page
Expand
Partition
surface
Suggestions for using transactions
The shorter the transaction duration, the better
Avoid interacting with users during transactions
During data query , Try not to enable transactions
Make use of transaction isolation level and lock prompt
Deadlock
Cyclic deadlock
conversion deadlock
Distributed deadlocks
Cause of lock and related treatment
Time consuming queries or transactions
Incorrect transaction or transaction isolation level
The transaction is not handled correctly
Undetected distributed deadlock
Locking data granularity is too high or too low
The basic principle of
Prevent locking others
Transactions should not cross batches , And the shorter the better , Don't interact with users during transactions
Handle the timeout carefully and give up , Or execution error
Build the right index , Data tables have clustered indexes
Try not to start implicit transactions , Avoid opening transactions for a long time
Try to reduce the transaction isolation level
If allowed , You can try using lock hints
Prevent and handle deadlocks
Try to avoid or deal with the blockage as soon as possible
Access data in the same order
Let different connections use the same lock
Provide different data access paths
The solution after the birth and death lock
Set up Deadlock priority , Let unimportant affairs give up automatically
Welcome to join me for wechat exchange and discussion ( Please note csdn Add )
边栏推荐
- KingbaseES V8R3集群维护案例之---在线添加备库管理节点
- PIP install beatifulsoup4 installation failed
- Net small and medium-sized enterprise project development framework series (one)
- The American Championship is about to start. Are you ready?
- 阿里云有奖体验:用PolarDB-X搭建一个高可用系统
- Incentive mechanism of Ethereum eth
- Some common processing problems of structural equation model Amos software
- Robot operation mechanism
- Cold violence -- another perspective of objective function setting
- 854. 相似度为 K 的字符串 BFS
猜你喜欢

Bitbucket installation configuration

KingbaseES V8R3集群维护案例之---在线添加备库管理节点

The Blue Bridge Cup web application development simulation competition is open for the first time! Contestants fast forward!

MySQL disconnection reports an error MySQL ldb_ exceptions. OperationalError 4031, The client was disconnected by the server

从零开始实现lmax-Disruptor队列(四)多线程生产者MultiProducerSequencer原理解析

极狐公司官方澄清声明

Oracle checkpoint queue - Analysis of the principle of instance crash recovery

"Grain mall" -- Summary and induction
![[Yugong series] go teaching course in July 2022 004 go code Notes](/img/56/d596e7c7bec9abd888e8f18f9769f8.png)
[Yugong series] go teaching course in July 2022 004 go code Notes

Scenario interview: ten questions and ten answers about distributed locks
随机推荐
Implementing Lmax disruptor queue from scratch (IV) principle analysis of multithreaded producer multiproducersequencer
Net small and medium-sized enterprise project development framework series (one)
Summarize the reasons for 2XX, 3xx, 4xx, 5xx status codes
The real situation of programmers
oracle 控制文件的多路复用
装饰器学习01
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
Ethereum ETH的奖励机制
crm创建基于fetch自己的自定义报告
Huawei game multimedia service calls the method of shielding the voice of the specified player, and the error code 3010 is returned
资深电感厂家告诉你电感什么情况会有噪音电感噪音是比较常见的一种电感故障情况,如果使用的电感出现了噪音大家也不用着急,只需要准确查找分析出什么何原因,其实还是有具体的方法来解决的。作为一家拥有18年品牌
Some things make feelings nowhere to put
How to use tensorflow2 for cat and dog classification and recognition
An exception occurred in Huawei game multimedia calling the room switching method internal system error Reason:90000017
1.2 download and installation of the help software rstudio
Codeforces 12D Ball 树形阵列模拟3排序元素
华为云ModelArts文本分类–外卖评论
Code bug correction, char is converted to int high-order symbol extension, resulting in changes in positivity and negativity and values. Int num = (int) (unsigned int) a, which will occur in older com
Environment configuration problem record
HYSBZ 2243 染色 (树链拆分)