# Synchronized Rebuilds:The Hidden Cost of Concurrent Inserts in Learned Indexes

DevFeed: [Synchronized Rebuilds:The Hidden Cost of Concurrent Inserts in Learned Indexes](<https://devfeed.tech/articles/synchronized-rebuilds-the-hidden-cost-of-concurrent-inserts-in-learned-indexes-101506.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.33770>)

Author: Emmilly Immaculate Namuganga, Laurent Bindschaedler

Published: 2026-10-27T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [synchronization](<https://devfeed.tech/topics/synchronization.md>), [database-consistency](<https://devfeed.tech/topics/database-consistency.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [array](<https://devfeed.tech/tags/array.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [b-tree](<https://devfeed.tech/tags/b-tree.md>), [background](<https://devfeed.tech/tags/background.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [best](<https://devfeed.tech/tags/best.md>), [blocks](<https://devfeed.tech/tags/blocks.md>), [buffer](<https://devfeed.tech/tags/buffer.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [data](<https://devfeed.tech/tags/data.md>), [design](<https://devfeed.tech/tags/design.md>), [designs](<https://devfeed.tech/tags/designs.md>), [exists](<https://devfeed.tech/tags/exists.md>), [hidden](<https://devfeed.tech/tags/hidden.md>), [indexes](<https://devfeed.tech/tags/indexes.md>), [rebuilds](<https://devfeed.tech/tags/rebuilds.md>)

## AI overview

Across more than 4,000 runs of 13 learned indexes, the study finds distinct costs for concurrent inserts: gapped-array indexes rebuild nodes in synchronized bursts, model-placement indexes use three to four times the memory, and buffered indexes take two to three times longer. Three of five concurrent indexes lost keys or stopped making progress, while standard benchmarks missed both these failures and rebuild bursts. Unlike B-tree page rebuilds, learned-index rebuilds copy much larger nodes and block operations reaching them. Randomizing node density spreads bursts; smaller nodes trade bursts for longer runtimes at scale. A temporary buffer used during rebuilds and background rebuilds remove the bursts. On 400 million real keys, these techniques reduced inserts exceeding 100 μs by 100-fold at one thread and tenfold at sixteen threads when spare cores ran background work, with runtimes one-third to one-half those of buffered designs.

## Source excerpt

arXiv:2610.33770v1 Announce Type: new Abstract: Nine years after learned indexes were proposed, their advantage on read-mostly data is well established, and a standard benchmark rates their best concurrent version as almost ready for use. Across more than 4000 runs of 13 indexes, we find that each design pays for concurrent inserts in a different way. Gapped-array indexes rebuild their nodes in synchronized bursts, at positions that follow from three constants in the source. Model-placement indexes use three to four times the memory, buffered indexes take two to three times as long. Three of five concurrent learned indexes lost keys or stopped making progress. Standard benchmarks miss both the bursts and the lost keys. The bursts cost far more than in B-trees because each rebuild copies a node a thousand times larger than a page and, under concurrency, blocks every operation that reaches the node. The typical B-tree fix of randomizing node density only spreads the bursts out,while smaller nodes trade them for longer run times at scale. Two standard systems techniques remove them: a buffer that exists only while a node is rebuilt, and background rebuilds.We show that on 400M real keys, these techniques reduce the number of inserts whose latency exceeds 100$\mu$s by two orders of magnitude at one thread, and by one at sixteen when spare cores run the background threads, at a third to half the run time of the buffered designs.