B+ Tree Order & Occupancy Bounds
\left\lceil \frac{m}{2} \right\rceil - 1 \le k \le m - 1 \quad (\text{non-root nodes})
m: tree order (max children per internal node), k: keys stored per page.
Core storage engine equations for B+ Tree indexing, node branching factor and occupancy bounds, logarithmic disk page I/O lookups, and range scan leaf traversals.
\left\lceil \frac{m}{2} \right\rceil - 1 \le k \le m - 1 \quad (\text{non-root nodes})
m: tree order (max children per internal node), k: keys stored per page.
h \le \left\lfloor \log_{\lceil m/2 \rceil}\left(\frac{N + 1}{2}\right) \right\rfloor + 1
High fanout (m ~ 100-500 on 4-16 KB pages) keeps height at 3-4 for millions of rows.
\mathrm{IO}_{\text{range}} = h + L_{\text{scan}} - 1
h: root-to-leaf descent I/Os, L_scan: consecutive linked leaf pages scanned.
P_{\text{children}} = k_{\text{keys}} + 1
Every separator key routes strictly less keys left and greater-or-equal keys right.
B+ Trees store record payloads only in leaves, maximizing internal node fanout so tree height stays tiny (3-4 disk reads for billions of rows), and link all leaves sequentially for fast range scans.
When a leaf splits, the first key of the new right leaf is copied up to the parent so it remains in the leaf layer. When an internal node splits, the median key is pushed up and removed from the child nodes.
Larger disk pages fit more keys and child pointers per node (higher order m), which dramatically increases branching factor and reduces the number of tree levels.