当前位置:网站首页>Change buffer introduction
Change buffer introduction
2022-07-18 03:40:00 【Fried Crazy Rabbit】
change buffer
Reference resources
Introduce and use scenarios
change bufferYou can beInsert BufferThe upgrade .Change BufferThe applicable object is still Non unique auxiliary index .
Change BufferThe applicable scenario is : Update operation of non unique indexWhen you need to update a data page , If the data page is in memory, update it directly . If not , Without affecting data consistency , Cache the update operation in change buffer in . When the next query needs to access this data page, it will read the data page into memory and then execute change buffer Operations related to this page in .
Why is a unique index not as applicable as a normal index change buffer
For a unique index , Update operation requires First, judge whether this operation violates the uniqueness constraint ( It is necessary to read data pages such as memory to see if they are unique ), If they are all read into memory, there is no need to use
change buffer了 , Just modify it directly in memoryabout For ordinary indexes , When updating, if the target memory page is not in memory , Record the update in
change buffer, The execution of the statement is over
change buffer How to improve performance ?
Reading data from disk to memory involves
Random IOThe interview of , It is one of the most expensive operations of database .
change bufferReduce random disk access , Improved the performance of the update
change buffer Applicable scenario
Ideal situation :
mergeIt is the time to update the data , The ideal situation is change buffer Record a lot of records before proceedingmerge. This requires less reading operations , If you read a lot , Every time I finish change buffer It's about to be updated , Random IO No reduction
- Write less and read less. , Most suitable for change buffer
边栏推荐
- Learning summary Note 6 (Gerui titant software - Jiuye practical training)
- 在线办公,如何让协同更高效?
- 浅谈 Slack Channel 支持的一些提高工作效率的特性
- H5 implementation generates urlscheme and jumps from H5 to applet
- The US Treasury Department approved the transaction of chemical fertilizers and agricultural products with Russia
- Google Earth Engine(GEE)——S2影像异常值
- Andorid studio makes happy writing numbers (timer start + frame animation)
- Two years of crud, two ordinary graduates, three months of challenge interview Ali, successfully won the offer grading P7! Annual salary 50W
- Is it true that double non undergraduate students cannot enter the big factory? Ali technology four sides + cross face +hr face, successfully got the offer!!
- leetcode:300. 最长递增子序列【LIS板子 + 贪心二分 + nlogn】
猜你喜欢

水电站设备也能远程运维
![leetcode:300. Longest increasing subsequence [LIS board + greedy dichotomy + nlogn]](/img/1c/cfbeb0ef8b0adea03b901653c0d7ed.png)
leetcode:300. Longest increasing subsequence [LIS board + greedy dichotomy + nlogn]

Comparison of xssfworkbook, sxssfworkbook and easyexcel reading Excel files

After 00, he graduated from Nanjing University and planned to be a special associate researcher. Netizens quarreled after picking out their papers

让企业数字化砸锅和IT主管背锅的软件供应链安全风险指北

Wrap in shutter

MySQL (III) router, MHA high availability

Chromium Threading and Task

Two years of crud, two ordinary graduates, three months of challenge interview Ali, successfully won the offer grading P7! Annual salary 50W

Where is the IBD file of MySQL in win11 virtual machine
随机推荐
Euler talk | developer community experience bureau starts at about 19:30 on July 14
Flutter 中的 offstage
Why did musk stop acquiring twitter?
torch. nn. Use of ctcloss()
Will the expired data of redis be deleted immediately? Great mystery
世界首款抗量子攻击商用密码芯片 | 沐创
Dataarts studio data architecture -- a case of intelligent automation pipeline construction based on model driven
PD-Server GRPC 接口图解
Four sides Ali offer grading p82022 latest and most practical Ali 68 advanced interview questions to help you succeed in your interview!!
中國人力資源數字化生態圖譜-靈活用工市場
[visdom drawing] summary of visdom drawing in deep learning
【C语言】静态&动态&文件通讯录(超万字)
Use the kicad plug-in to visualize PCB welding
lnmp架构php安装
软考 系统架构设计师 简明教程 | 企业信息化与电子商务
Where is the IBD file of MySQL in win11 virtual machine
[200 opencv routines] 230 LBP statistical histogram of feature description
Andorid studio makes happy writing numbers (timer start + frame animation)
leetcode:558. 四叉树交集【四叉树dfs】
Sony's metauniverse layout