当前位置:网站首页>Pessimistic lock and optimistic lock of MySQL
Pessimistic lock and optimistic lock of MySQL
2022-06-12 11:24:00 【Xiao Liu - fish skin】
Interview questions :mysql The lock of pessimism and the lock of optimism
Pessimistic locking , Because this is a pessimistic way of concurrency control for data modification . We generally think that data is more likely to be modified concurrently , So we need to lock it before we modify it .
Optimism lock , When processing the database , Optimistic locks do not use the lock mechanism provided by the database . The general way to implement optimistic locking is to record the data version (version).
边栏推荐
猜你喜欢

logrotate日志轮转方式create和copytruncate原理

套接字编程Udp篇

Clj3-100alh30 residual current relay

k58.第一章 基于kubeadm安装kubernetes v1.23 -- 集群部署

Socket Programming TCP

Index query efficiency of MySQL

Using stairs function in MATLAB

AcWing 131. 直方图中最大的矩形(单调栈经典运用 模板)

SOT23(Small Outline Transistor)

M-arch (fanwai 11) gd32l233 evaluation PWM driven active buzzer
随机推荐
AcWing 131. The largest rectangle in the histogram (monotone stack classic application template)
ReentrantLock源码分析
redis 總結
go基于腾讯云实现发送短信
自然语言处理nlp 数据集下载地址
tensorflow 2.x 多分类混淆矩阵及评价指标计算方法(精确率、召回率、f1分数)
C# 36. DataGridView行号
Distributed storage exploration
Module 8 job
AI - face
卡鱼刺别再喝醋吞米饭了!教你2招,让鱼刺安全“跑出来”
ArrayList automatic capacity expansion principle
人脸识别pip 安装dlib库失败
Collation of common functions in JS
How to view glibc version
Leetcode 162 Looking for peak value (June 11, 2022)
正则表达式 | 浅解
k52.第一章 基于kubeadm安装kubernetes v1.22 -- 集群部署
K59. Chapter 2 installing kubernetes V1.23 based on binary packages -- cluster deployment
SOT23(Small Outline Transistor)