arXiv:2610.23232cs.DBOct 2026

Manuscript Offprint

arXiv:2610.23232

PrairieFire: Igniting High-Throughput Updates in Large-Scale Approximate Nearest Neighbor Search

Yuchen Huang, Baiteng Ma, Yiping Sun, Xiao Chen, Rui Ma, Yue Chen, Jinwei Zhang, Xiaocheng Zhong, Zhiyong Wang, Yao Hu, Erci Xu, Chuliang Weng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Arrays of modern NVMe SSDs are approaching memory in terms of bandwidth in a single server while offering much lower cost per gigabyte. Hence, approximate nearest neighbor search (ANNS) for billion-scale vectors in applications such as recommendation, search, and retrieval-augmented generation increasingly runs on SSD-based systems. Unfortunately, due to the limited update throughput of existing SSD-based solutions, the indexed corpus cannot keep pace with continuous modifications to data and embedding models, thus hindering broader deployment across more scenarios and larger scales.

The bottleneck lies in CPU-intensive update paths, where foreground insertions incur frequent SSD accesses and background reassignments repeatedly relocate each vector, making high update throughput difficult to achieve even by exhausting available hardware. In this paper, using buffered updates and batched local rebuilds, we develop PRAIRIEFIRE with cascaded adjustments, concurrency control, and CPU-GPU-SSD cooperation. These co-designs avoid frequent SSD accesses in foreground updates and heavy background reassignments, achieving high update throughput while maintaining excellent search performance.

Evaluations show that, compared with state-of-the-art systems, PRAIRIEFIRE can sustain ~3-35× update throughput while maintaining ~3-5× search throughput simultaneously. It also achieves ~1.5-8.7× cost efficiency. PRAIRIEFIRE has been deployed in RedNote's production environments for two months, improving business metrics (e.g., click-through rate) by higher freshness without frequent index rebuilds.

1 INTRODUCTION

Approximate nearest neighbor search (ANNS) over embedding vectors underpins online services such as recommendation, search engines, advertising, and retrieval-augmented generation [34, 35, 36, 38, 39]. To reduce storage cost over billions of vectors, recent systems try to place raw vectors as cluster lists or as graph nodes with neighboring edges from DRAM onto NVMe SSDs [17, 23, 29, 57, 62]. The corpus of vectors, however, is anything but static. In upstream applications, items are continuously created and retired, and the underlying embedding models are continuously adjusted and synchronized at an hourly or finer cadence to track shifting user behavior for better business outcomes [38, 42]. A practical ANNS service must therefore find top-k results against the latest valid data while continuously absorbing a stream of inserts and deletes arising from both dynamic items [24, 64] and continual learning of embedding models [22, 69].

To support updates, based on existing static ANNS [17, 57], two notable solutions have been proposed (i.e., OdinANN [24] and SPFresh [64]). OdinANN follows the graph structure [57] and introduces direct modifications to avoid the inefficiency of periodic merging (e.g., 1.5-2× search latency and ~3× peak memory usage during merging [55, 67]). SPFresh adopts a partition-based structure, which routes vectors to partitions through an in-memory centroid index and maintains partitions' lists on SSDs. To address the degraded index quality under continuous updates, SPFresh introduces a local rebuild mechanism that splits or merges partitions and reassigns vectors to their nearest partitions.

However, when extending SSD-based ANNS to broader large-scale scenarios, their update performance becomes a limitation. Recent industrial practice points out that, to track user behavior in real time, the continual learning [22, 38, 42, 69] of embedding models calls for high-throughput updates. For a 0.1B-scale index in recommendation systems, maintaining freshness demands an update throughput of up to 30K queries per second (QPS) to match [29]. This requirement is comparable to the search throughput of online services, making updates the other first-class performance target. But even if we deploy an SSD array with >100GB/s bandwidth and exhaust all 64 CPU cores on update-only operations, OdinANN and SPFresh can only sustain about 6% to 40% of the target.

Graph-based OdinANN achieves only 2–3 KQPS because each update searches ~100 neighbors before modifying links, incurring ~4–7 ms due to inherent multi-hop SSD accesses [29, 30, 62]. Partition-based SPFresh routes inserts through in-memory centroids (<1 ms), but rewriting SSD posting lists per insertion in foreground still incurs unacceptable CPU consumptions. Background per-vector relocations after splits or merges require extra CPU cores to deal with centroid locations and partition updates. Even with 64 CPU cores for update-only requests, it can only reach ~12 KQPS.

Hence, we propose to use buffered updates and batched reclustering for rebuilds, instead of immediate flushes and asynchronous reassignments in SPFresh. First, buffered updates can amortize the overhead of foreground SSD round trips, where multiple updates to the same cluster are accumulated in memory and flushed to SSD as a batch. Second, we can recluster an imbalanced region, replacing the steady drip of per-vector reassignments with a single batch local rebuild. However, it is non-trivial to apply these ideas. There are several conflicts and challenges.

Conflicts. For high-performance search, SPFresh takes fine-grained partitioning and replicated placement. However, these designs leave no memory budget for per-list buffers, and make the buffering less effective. SPFresh creates up to 16% as many partitions as vectors, so even small per-partition buffers (e.g., 8 or 16 vectors) can raise memory footprint to 2–3×. And a single new vector can trigger up to 8× insertions, which again cause frequent SSD reads/writes even with buffered updates.

Challenges. Hence, we return to normal-scale partitions (e.g., 1-2% of the dataset size) and single-copy placement, but this burdens search. In detail, it can suffer more from distribution drift, since updates are amortized across fewer partitions, each partition experiences more modifications, thus reducing the representativeness of static centroids. Without replications, more clusters need to be searched for each query simultaneously to keep accuracy. To address these, we need dynamic centroid adjustment to track updates, high concurrency and better pipelines to support search performance. Moreover, we use reclustering to replace reassignments after splits or merges, but reclustering incurs a higher computational burden and requires equal or more cores than background reassignments, making reclustering inefficient.

In this paper, we propose PRAIRIEFIRE with the following key techniques:

  • Based on above analysis, PRAIRIEFIRE organizes a three-level partition-based index and supports cascaded updates on centroids, where insertions and deletions of vectors can be buffered and propagated to upper-level centroids, thus avoiding frequent SSD round trips and preserving centroid representativeness.

  • Based on the index structure, we develop fine-grained concurrency control to support high concurrency of operations, including insertions, deletions, searches and local rebuilds.

  • We build the co-designed workflow on GPUs, CPUs and high-bandwidth SSDs to accelerate centroid routing, partition scanning, and computing-intensive clustering-based rebuilds.

We compare PRAIRIEFIRE with state-of-the-art ANNS that support updates on large-scale workloads. Comprehensive evaluations show that PRAIRIEFIRE can sustain ∼3−35×\sim3-35\times update throughput while maintaining ∼3−5×\sim3-5\times search throughput simultaneously. In addition, during the whole process, our search accuracy is comparable to or higher than baselines. At last, we evaluate the cost and energy efficiency of PRAIRIEFIRE, showing up to 1.5−8.7×1.5-8.7\times hardware efficiency of baselines in terms of device acquisition, power consumption, and storage footprint. PRAIRIEFIRE has been running reliably in RedNote's services for two months, reducing index rebuild frequency by over 95% across the dozens of indexes it hosts and improving all business metrics (e.g., click-through rate and content impressions).

References (19)