IT lexicon › Database › B+ tree

B+ tree

Database På svenska → Updated: 2026-11-11

A self-balancing tree structure with high branching factor for fast point queries and efficient sequential range scans from disk, nearly universal in databases.

B+ trees refine B-trees: all keys live in the leaf layer, and leaves are linked together in sequential order. A range query for values between X and Y needs only to follow leaf pointers, not zigzag through internal nodes. This makes B+ trees ideal for both exact lookups and sorted scans.

Nearly every database — Oracle, PostgreSQL, MySQL, SQLite — uses B+ trees for indexes. They excel at disk-based storage because a high branching factor (often 50–100) keeps the tree shallow — three to four levels even for billions of records — and each level fits a disk block.

← Back to the lexicon