1024programmer Mysql Finally understand that MySQL index needs to use B+tree, and it is so fast

Finally understand that MySQL index needs to use B+tree, and it is so fast

The mysql tutorial column introduces the B+tree for understanding indexes.

Tip : When there are two middle keywords, the left keyword is usually split up.

Delete

The delete operation will be more troublesome than the search and insert, because the keyword to be deleted may be on the leaf node, or It may not be there, and the deletion may cause the imbalance of the B-tree, and operations such as merging and rotation are required to maintain the balance of the whole tree.

Take a random tree (level 5) as an example

The above is the final understanding that the MySQL index uses B+tree, and it is so fast. For more details, please pay attention to other related articles on 1024programmer.com !

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/finally-understand-that-mysql-index-needs-to-use-btree-and-it-is-so-fast/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索