Bounding the Fragmentation of B-Trees Subject to Batched Insertions
Abstract
The issue of internal fragmentation in data structures is a fundamental challenge in database design. A seminal result of Yao in this field shows that evenly splitting the leaves of a B-tree against a workload of uniformly random insertions achieves space utilization of around 69%. However, many database applications perform batched insertions, where a small run of consecutive keys is inserted at a single position. We develop a generalization of Yao's analysis to provide rigorous treatment of such batched workloads. Our approach revisits and reformulates the analytical structure underlying Yao's result in a way that enables generalization and is used to argue that even splitting works well for many workloads in our extended class. For the remaining workloads, we develop simple alternative strategies that provably maintain good space utilization.
Cite
@article{arxiv.2603.12211,
title = {Bounding the Fragmentation of B-Trees Subject to Batched Insertions},
author = {Michael A. Bender and Aaron Bernstein and Nairen Cao and Alex Conway and Martín Farach-Colton and Hanna Komlós and Yarin Shechter and Nicole Wein},
journal= {arXiv preprint arXiv:2603.12211},
year = {2026}
}
Comments
To appear at PODS 2026, 30 pages, 5 figures