arXiv:2611.09172cs.DSNov 2026

Manuscript Offprint

arXiv:2611.09172

PaB-tree: Parallel B+-tree with Batch Updates

Ziyang Men, Yan Gu, Yihan Sun, Helen Xu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Ziyang Men

ziyang.men@email.ucr.edu

University of California,

Riverside

Yan Gu

ygu@cs.ucr.edu

University of California,

Riverside

Yihan Sun

yihans@cs.ucr.edu

University of California,

Riverside

Helen Xu

hxu615@gatech.edu

Georgia Institute of

Technology

Abstract

The B+B^+-tree is a ubiquitous search index due to its provable I/O (cache) efficiency. Yet unlike batch-parallel binary search trees, which are both fast and widely available, no batch-parallel B+B^+-tree offers strong empirical performance together with provable, near-optimal I/O efficiency. Prior B+B^+-tree-based designs are either parallel but purely theoretical, with no high-performance implementation, or concurrent indexes such as the Bw-tree and Mass-tree, which run an order of magnitude slower on batch updates.

We present PaB-tree, the first batch-parallel B+B^+-tree with guarantees on work, span, and cache complexity alongside strong practical performance. Its core challenge—repairing node overflows and underflows without eroding the tree's I/O advantage—is resolved by one simple invariant: a repair never touches a sibling and is always pushed to the parent. A PROMOTE primitive reduces batch construction and insertion to repeated node promotion, and batch deletion to reinsertion. Batch updates take O(Blog⁡Bn)O(B \log_B n) work and O(log⁡Bn)O(\log_B n) I/O per element, matching the sequential B+B^+-tree bounds, with polylogarithmic span. Against highly optimized parallel and concurrent baselines, PaB-tree delivers the best overall performance trade-off: up to 1.4×1.4\times faster on construction and up to 2.0×2.0\times faster on batch insertion than the strongest baseline, while preserving B+B^+-tree query efficiency.

1 Introduction

B/B+^+-trees [7, 23] are among the most fundamental data structures and search indexes, widely adopted in both in-memory and external-memory systems. In this paper, we focus on the in-memory setting. Unlike binary search trees (BSTs), which use a single key as a separator, B/B+^+-trees keep a Θ(B)\Theta(B)-way fan-out so that each node aligns with the hardware access unit (typically a few cache lines in the in-memory setting). Every node access therefore fetches Θ(B)\Theta(B) keys for comparison, and a single access is logically equivalent to descending Θ(log⁡B)\Theta(\log B) levels of a BST. This design positions the B/B+^+-tree as one of the most canonical data structures for achieving provable I/O (cache) efficiency. Backed by this theoretical guarantee, in-memory B/B+^+-trees typically outperform binary trees by 2−8×2-8\times in the sequential setting, and therefore have been natively offered across a wide spectrum of software libraries [10, 11, 36, 37, 66].

Batch-Parallel Paradigm. Driven by growing data scales and the multicore era, batch-parallel data structures have attracted significant research interest [1, 5, 14, 17, 26, 27, 29,

44–46, 52, 53, 57, 62, 64, 65, 68, 70, 71, 74, 75, 77–79, 85]. These structures apply updates (insertions or deletions) in batches in parallel, and have been adopted in graph processing [27, 29, 31, 57, 69, 75], databases [61, 64], parallel algorithms for dynamic programming [28, 39], computational geometry [13, 52], vector similarity search [53, 84, 85], etc.

Although both B/B+^+-trees [7, 23] and BSTs [2, 41, 55] were introduced over 50 years ago, and while B/B+^+-trees are the go-to index design due to their cache-friendliness, there is a striking disparity in the maturity of their batch-parallel counterparts. Parallel BST implementations have been studied extensively and are widely accessible in practice, with examples including the PAM [14, 65], Aspen [27], CPAM [26], and MCSTL [32]. Many of them are also theoretically efficient, achieving high parallelism while preserving optimal or near-optimal sequential work bounds. In contrast, there is a notable lack of accessible batch-parallel B/B+^+-tree implementations with both strong empirical performance and provable, near-optimal I/O efficiency. Existing efforts are either purely theoretical [35, 43, 59], with no high-performance implementation, or concurrent, such as the well-known Bw-tree [72] and the Mass-tree [50]. However, concurrent structures do not exploit the inherent advantages of batching; consistent with prior findings [65], Sec. 4 shows that they run an order of magnitude slower than parallel trees in batch updates. Other studies have explored binary trees with expanded node sizes [26, 27], but they remain a suboptimal compromise for I/O efficiency (also see Fig. 1), due to looser tree-height bounds compared to a true B/B+^+-tree, and none offer non-trivial cache complexity.

Challenges in Designing Efficient Parallel B/B+^+-trees. The primary challenge in parallelizing B/B+^+-trees lies in achieving low-cost structural repairs without eroding their I/O advantage. While the high fan-out in a B/B+^+-tree decreases memory transfers (i.e., the cache complexity), it does not reduce the total work (in terms of the number of comparisons), and is inherently more complicated to deal with. Whereas BST rotations remain strictly local, the high fan-out nature of B/B+^+-trees may cause structural imbalances (overflows or underflows) to propagate across neighboring parallel subtasks, demanding dedicated efforts to repair. Since the reduction in memory access, Θ(log⁡2B)\Theta(\log_2 B), is relatively modest in practice, any overhead added to reconcile structural modifications is subtracted from the sole term that constitutes the benefit. Consequently, a merely correct design is easily slower than a well-tuned parallel BST.

Ziyang Men, Yan Gu, Yihan Sun, and Helen Xu

Figure

Figure 1. Running time (in seconds) of the sequential and parallel BSTs and B+B^{+}-trees. Lower is better. We measure the time under a uniform distribution, including the time to build a tree containing 10810^{8} entries and the time to insert 1% and 10% of entries into the tree. The query time is measured by searching 10610^{6} entries, and reporting [103,105][10^{3}, 10^{5}] entries in a range.

This raises a critical question: Can the high fan-out design of B+/B+B^{+}/B^{+}-trees still offer provable cache efficiency in the parallel setting, and can this advantage translate into better performance in practice? In this paper, we answer the question affirmatively by presenting the PaB-tree, the first batch-parallel B+B^{+}-tree implementation with both theoretical guarantees (work, span, cache complexity) and strong practical performance across a wide range of workloads.

Approach Overview. In light of the challenges discussed above, our design prioritizes conceptual simplicity to minimize parallel overhead during structural repairs. The design follows a single rule: a repair never touches a sibling; it is always pushed to the parent.

The difficulty is that a repair must never reach sideways to a sibling, which another parallel task may be modifying at the same time; instead, every repair travels up the ancestor path the recursion already owns. We realize this by having each recursive call return a heavy node—a possibly oversized node that the parent absorbs and re-partitions—rather than a fixed-shape subtree, and by keeping a node-capacity margin that lets the more involved deletion cost amortize fully.

A single overflow-like operation (our PROMOTE primitive detailed in Sec. 3) resolves an oversized heavy node, and both construction and insertion reduce to repeated applications of it. Underflow in batch deletion, however, is more challenging to handle. Our solution reduces underflow repair to insertion—an operation we have already made parallel and cache-efficient—so no node ever consults a sibling. Specifically, given a set of underflowed subtrees invalidated by a batch deletion, we carefully identify a few entry points for them to be reinserted, letting them share the work, such that the total overhead can be bounded in an amortized fashion (Thm. 3.3). Fig. 5 shows that the reinserted volume also stays modest in practice, so the reduction is inexpensive as well as simple.

Results Summary. For both batch insertion and deletion, PaB-tree achieves provable bounds on work, span, and cache

complexity. A batch insertion or deletion incurs O(Blog⁡Bn)O(B \log_B n) work and O(log⁡Bn)O(\log_B n) I/O cost per element, matching the bounds of a sequential B+B^+-tree, and both operations achieve poly-logarithmic span (Thm. 3.1 and Thm. 3.3). The theoretical efficiency also translates into strong performance in practice. Fig. 1 confirms this observation: PaB-tree matches the cache-friendliness of sequential B+B^+-tree without sacrificing parallelism, and excels when processing large batches.

Fig. 4 confirms this trend on a more comprehensive benchmark across different operations, data distributions, and more baselines. Overall, PaB-tree achieves the best performance trade-off among various existing data structures. It has an advantage in parallel construction and batch insertions, scaling especially well to processing large batches, as well as outperforming all other tree-based baselines on queries. As a result, PaB-tree demonstrates consistent gains on real-world geometric and graph workloads (Sec. 4.2 and Sec. 4.3). We release our anonymous code [51].

References (13)