数据库调优

B+树与索引方法
本文介绍了树结构索引、IndexedSequentialAccessMethod(ISAM)及B+树三种索引方式,并重点阐述了B+树的特点及其在数据库和文件系统中的广泛应用。

1.树结构的索引(Tree-Structured Indexing)
the root of this tree will always be in main memory, while the leaves will be located on disk(树的根节点在main memory,叶子节点在disk中)


2.Indexed sequential access method (ISAM)
Cons(缺点):losing sequentiality and balance.
Prons(优点):No need to lock non-leaf index pages since we never modify them, which is one of important advantages of ISAM over B+tree.


3.B+ tree
A B+-Tree is a balanced tree whose leaves contain a sequence of key-pointer pairs. It is the Most Widely Used Index.
B+ 树是一种树数据结构,是一个n叉排序树,每个节点通常有多个孩子,一棵B+树包含根节点、内部节点和叶子节点。
B+ 树通常用于数据库和操作系统的文件系统中。NTFS, ReiserFS, NSS, XFS, JFS, ReFS 和BFS等文件系统都在使用B+树作为元数据索引。B+ 树的特点是能够保持数据稳定有序,其插入与修改拥有较稳定的对数时间复杂度。B+ 树元素自底向上插入。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值