Operation-Aware Hybrid Locking for Modern In-Memory Indexes
Achieving scalable performance in modern in-memory indexes is primarily limited by synchronization. Traditional synchronization approaches apply a single "one-size-fits-all" strategy, ignoring the diverse characteristics of different index operations. For instance, pessimistic lock coupling forces high atomic overhead on all tree traversals, even simple lookup operations. Meanwhile, optimistic queue-based locking, while efficient for lookups, suffers from performance collapse due to shared data movement during high-contention updates. This paper introduces Opal, a hybrid operation-aware lock design for modern in-memory indexes. Opal dynamically selects among three locking mechanisms within a single lock instance based on operation type: (i) optimistic version-based locking for read-only lookups; (ii) lightweight function-pointer-based batching for updates that eliminates shared data movement; and (iii) traditional MCS-based locking for structural modification operations (SMOs), such as node splits and merges, that naturally distributes contention across multiple index nodes. We evaluate Opal on widely-used index structures: a B+ Tree and an Adaptive Radix Tree (ART). Compared to state-of-the-art optimistic locking, Opal improves throughput by up to 2.43x and reduces latency by 80%.
Cite this item
Gupta, V., Lopez, M. S., Laforet, V., Lozi, J.-P., & Kashyap, S. (2026). Operation-Aware Hybrid Locking for Modern In-Memory Indexes. Proceedings of the VLDB Endowment, 19(8), 1804–1817. https://doi.org/10.14778/3811243.3811253
Click Copy to copy the citation, or select the text manually.
3811243.3811253.pdf
Main Document
Published version
openaccess
CC BY-NC-ND
1.08 MB
Adobe PDF
bb1e1d2d7606685f88b60e77753ea5b9