Skip navigation
A B-tree is how databases find one row among a billion in a blink: each node holds several sorted…
0:00

A B-tree is how databases find one row among a billion in a blink: each node holds several sorted…

#algorithm #btree #database

A B-tree is how databases find one row among a billion in a blink: each node holds several sorted keys side by side, and every key acts as a fence between ranges, so a single comparison rules out an entire branch. When a node overflows, it splits and its middle key rises upward — the tree grows from the top, never the bottom, so every leaf stays at the same shallow depth. That built-in balance is why SQLite, Postgres, and even your file system keep their indexes in B-trees. #algorithm #btree #database #datastructures #computerscience #coding #programming #visualization #tech #software

Comments

Comments from the original post on Instagram

No comments yet