Table Index

a replica of a subset of a table's attributes that are organized and/or sorted for efficient access using a subset of those attributes.

The DBMS ensures that the contents of the table and the index are logically in sync.

1. B+Tree Overview


<aside> 💡 B-Tree Family

The B+Tree in DBMS is not only the 1973 B+Tree

</aside>

A B+Tree is a self-balancing tree data structure that keeps data sorted and allows searches, sequential access, insertions, and deletions in O(log n).

1.1 Properties

A B+Tree is an $M$-way search tree with the following properties:

$$ \gdef\M{\hbox{M}} \hbox{Degree(\#keys)} \in

\left[\frac\M 2 - 1,\M - 1\right] $$

Inner nodes have pointers, leaf nodes have data

Inner nodes have pointers, leaf nodes have data

Every B+Tree node is comprised of an array of key/value pairs.