当前位置:网站首页>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 )
边栏推荐
- Net small and medium-sized enterprise project development framework series (one)
- Countdown to 92 days, the strategy for the provincial preparation of the Blue Bridge Cup is coming~
- Ad637 notes d'utilisation
- Interprocess communication in the "Chris Richardson microservice series" microservice architecture
- 从零开始实现lmax-Disruptor队列(四)多线程生产者MultiProducerSequencer原理解析
- 2.2.3 output of documents
- How to view Apache log4j 2 remote code execution vulnerability?
- Learning notes of statistical learning methods -- Chapter 1 Introduction to statistical learning methods
- Oracle检查点队列–实例崩溃恢复原理剖析
- EBS Oracle 11g 克隆步骤(单节点)
猜你喜欢
Official clarification statement of Jihu company
Uni app Bluetooth communication
Li Kou ----- the maximum profit of operating Ferris wheel
K210 learning notes (IV) k210 runs multiple models at the same time
深信服X计划-网络协议基础 DNS
Oracle checkpoint queue - Analysis of the principle of instance crash recovery
"Grain mall" -- Summary and induction
2.2.5 basic sentences of R language drawing
Alibaba cloud award winning experience: build a highly available system with polardb-x
MySQL连接断开报错MySQLdb._exceptions.OperationalError 4031, The client was disconnected by the server
随机推荐
Efficiency difference between row first and column first traversal of mat data types in opencv
EBS Oracle 11g cloning steps (single node)
one hundred and twenty-three thousand four hundred and fifty-six
MySQL连接断开报错MySQLdb._exceptions.OperationalError 4031, The client was disconnected by the server
Uni app Bluetooth communication
Cold violence -- another perspective of objective function setting
Image editor for their AutoLayout environment
Pointer parameter passing vs reference parameter passing vs value parameter passing
datagrid直接编辑保存“设计缺陷”
华为云ModelArts文本分类–外卖评论
Official clarification statement of Jihu company
K210学习笔记(四) K210同时运行多个模型
Chap2 steps into the palace of R language
Microservice link risk analysis
How to add new fields to mongodb with code (all)
场景化面试:关于分布式锁的十问十答
GCC9.5离线安装
An exception occurred in Huawei game multimedia calling the room switching method internal system error Reason:90000017
华为游戏多媒体调用切换房间方法出现异常Internal system error. Reason:90000017
Analyse des risques liés aux liaisons de microservices