当前位置:网站首页>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 )
边栏推荐
- crm创建基于fetch自己的自定义报告
- Zhang Lijun: penetrating uncertainty depends on four "invariants"
- 多家呼吸机巨头产品近期被一级召回 呼吸机市场仍在增量竞争
- Robot framework setting variables
- 微服务链路风险分析
- Implementing Lmax disruptor queue from scratch (IV) principle analysis of multithreaded producer multiproducersequencer
- Some things make feelings nowhere to put
- Learning notes of statistical learning methods -- Chapter 1 Introduction to statistical learning methods
- ICMP 介绍
- Making global exception handling classes with aspect
猜你喜欢
MATLAB | App Designer·我用MATLAB制作了一款LATEX公式实时编辑器
2.2.5 basic sentences of R language drawing
An exception occurred in Huawei game multimedia calling the room switching method internal system error Reason:90000017
Feng Tang's "spring breeze is not as good as you" digital collection, logged into xirang on July 8!
Recursive query of multi-level menu data
1.2 download and installation of the help software rstudio
怎么利用Tensorflow2进行猫狗分类识别
MMAP学习
ICMP 介绍
Parker driver maintenance COMPAX controller maintenance cpx0200h
随机推荐
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
Gcc9.5 offline installation
R language learning notes
Codeforces 12D Ball 树形阵列模拟3排序元素
华为游戏多媒体服务调用屏蔽指定玩家语音方法,返回错误码3010
Environment configuration problem record
Li Kou ----- the maximum profit of operating Ferris wheel
POJ 3237 tree (tree chain splitting)
Kingbasees v8r3 cluster maintenance case -- online addition of standby database management node
Advantages and disadvantages of the "Chris Richardson microservice series" microservice architecture
Chap2 steps into the palace of R language
K210学习笔记(四) K210同时运行多个模型
The solution to the problem that Oracle hugepages are not used, causing the server to be too laggy
极狐公司官方澄清声明
EBS Oracle 11g cloning steps (single node)
深信服X计划-网络协议基础 DNS
Tips for using SecureCRT
PIP install beatifulsoup4 installation failed
MMAP
Interview questions for basic software testing