当前位置:网站首页>Intention lock
Intention lock
2022-07-25 16:05:00 【Leon_ Jinhai_ Sun】
Intent locks (Intention Lock), also called I lock . For table lock .
When a transaction adds a shared lock or exclusive lock to the data row of the table , At the same time, an identifier will be set for the table , It means that there is already a row lock , When other transactions want to lock the table , There is no need to judge row by row whether row locks may conflict with table locks , Directly reading this sign can determine whether you should lock your watch . Especially when there are many records in the table , It is inefficient to judge the way of adding table lock row by row . And this sign is the intention lock .
- Intention sharing lock ,IS lock , Before applying a shared lock to the entire table , You need to obtain the intention sharing lock first .
- Intention exclusive lock ,IX lock , Before locking the whole watch , You need to get the intention exclusive lock first .
Mainly to improve the efficiency of adding meter lock .
Lock mode :
Cannot create... Manually .
Table level read lock :
lock table user_info read;
Table level write lock :
lock table user_info write;
边栏推荐
- 用GaussDB(for Redis)存画像,推荐业务轻松降本60%
- 共享锁(Shared Lock)
- Redis distributed lock, it's really impossible without it
- CircleIndicator组件,使指示器风格更加多样化
- Pytoch framework exercise (based on kaggle Titanic competition)
- MySQL tutorial 68-as setting alias
- mysql 表写锁
- Matlab -- CVX optimization kit installation
- Introduction to redis
- ServletConfig 类和ServletContext 类
猜你喜欢

# JWT 图解
![Leetcode:6127. Number of high-quality number pairs [bit operation finding rules + the sum of two numbers is greater than or equal to K + dichotomy]](/img/b5/5c7fc70b8025cf7ef21d645a3ac22e.png)
Leetcode:6127. Number of high-quality number pairs [bit operation finding rules + the sum of two numbers is greater than or equal to K + dichotomy]

Which led display manufacturer is better

Equivalent change of resistance circuit (Ⅱ)

leetcode:6127. 优质数对的数目【位运算找规律 + 两数之和大于等于k + 二分】

How matlab saves all the data after running
![[JS advanced] JS regular correlation functions and regular objects_ 02](/img/a0/27bf3f5146a5774eb3167a69d1e3cf.png)
[JS advanced] JS regular correlation functions and regular objects_ 02

Leetcode - 303 area and retrieval - array immutable (design prefix and array)

Product upgrade observation station in June

Visual studio 2022 view class diagram
随机推荐
「数字安全」警惕 NFT的七大骗局
How matlab saves all the data after running
通用测试用例写作规范
哪个led显示屏厂家更好
Gap Locks(间隙锁)
Boomi荣获“多元化最佳首席执行官奖”和“职业成长最佳公司奖”,在大型公司类别中跻身50强
MySQL-自增锁
30 lines write the concurrency tool class yourself (semaphore, cyclicbarrier, countdownlatch)
Simple rotation map and hamster beating
Activity review | July 6 Anyuan AI X machine heart series lecture No. 2 | MIT professor Max tegmark shares "symbiotic evolution of human and AI"
Introduction to redis
Leetcode:528. select randomly according to the weight [ordinary random failure + prefix and dichotomy]
MySQL教程65-MySQL操作表中数据
mysql意向锁
leetcode:6127. 优质数对的数目【位运算找规律 + 两数之和大于等于k + 二分】
Distributed | practice: smoothly migrate business from MYCAT to dble
leetcode:154. 寻找旋转排序数组中的最小值 II【关于旋转排序数组的中后定位二分法】
MySQL显式锁
Redis分布式锁,没它真不行
Product upgrade observation station in June