RapidStore: An Efficient Dynamic Graph Storage System for Concurrent Queries

Chiyu Hao, Jixian Su, Shixuan Sun, Hao Zhang, Sen Gao, Jianwen Zhao, Chenyi Zhang, Jieru Zhao, Chen Chen, Minyi Guo

Abstract

Dynamic graph storage systems must balance the high-frequency updates of evolving networks with the intensive computational demands of concurrent analytical queries. Traditional systems often suffer from a "versioning tax" and lock contention due to fine-grained concurrency control. This paper introduces RapidStore, an in-memory dynamic graph storage system that utilizes a subgraph-centric approach and a novel Compressed Adaptive Radix Tree (C-ART) to decouple read and write operations. RapidStore achieves up to 3.46x speedups in analytics while reducing memory consumption by over 56% compared to state-of-the-art systems.

1. Introduction

Dynamic graphs, such as social networks, financial transaction logs, and communication webs, are characterized by their constant evolution. To extract value from these datasets, systems must support high-throughput updates (writes) alongside complex analytical queries (reads), such as PageRank or Breadth-First Search (BFS). However, maintaining consistency in a concurrent environment typically introduces significant overhead. Existing solutions often rely on Multi-Version Concurrency Control (MVCC) at the edge level, which leads to performance bottlenecks and inefficient memory usage.

2. The Bottlenecks of Modern Graph Databases

State-of-the-art systems like Sortledton and LiveGraph face three primary challenges:

  1. The Versioning Tax: In edge-level MVCC, every neighbor list scan requires a version check for every individual edge. This repetitive validation significantly degrades performance for read-heavy analytical tasks.
  2. Lock Contention: To maintain data integrity, readers and writers frequently compete for locks on the same vertices. In high-concurrency scenarios, this contention causes substantial latency spikes.
  3. The Search-Scan Trade-off: Graph systems are often optimized for either "scans" (iterating through all neighbors) or "searches" (locating a specific neighbor). Most current architectures struggle to provide high performance for both simultaneously, which is critical for complex queries like pattern matching.

3. The RapidStore Architecture

RapidStore addresses these challenges through a holistic, decoupled architecture centered on four key innovations:

3.1 Subgraph-Centric Concurrency Control

Unlike traditional systems that version every edge, RapidStore partitions the graph into subgraphs and manages versions at the subgraph level. When an update occurs, the system employs a copy-on-write strategy to create a new version of the affected subgraph. This coarse-grained approach amortizes the cost of version management across many edges, effectively eliminating the per-edge versioning tax.

3.2 Decoupled Query Management

RapidStore implements a lock-free mechanism for read queries. A "Reader Tracer" identifies the appropriate global timestamp for a query, allowing it to operate on immutable snapshots of subgraphs. This design ensures that readers and writers never interfere with one another, maintaining high throughput even under heavy write loads.

3.3 Compressed Adaptive Radix Tree (C-ART)

While standard Adaptive Radix Trees (ART) offer fast search capabilities, they often suffer from low "filling ratios" in sparse graphs, which hinders scan performance. RapidStore introduces the Compressed Adaptive Radix Tree (C-ART), which utilizes horizontal leaf compression. By allowing a single leaf to store up to 256 neighbors, C-ART improves memory locality and scan speeds while maintaining the low latency of radix-based searches.

3.4 Clustered Indexing for the Long Tail

To optimize for the "long tail" of low-degree vertices common in power-law graphs, RapidStore uses a B+ tree-based clustered index. This groups neighbor sets together, further enhancing cache locality and reducing the memory footprint for the majority of vertices.

4. Evaluation

RapidStore was evaluated using six large-scale datasets, including LiveJournal, Orkut, Twitter, and the 2-billion-edge Friendster dataset.

4.1 Performance and Efficiency

The system demonstrated a 3.46x speedup over existing competitors in common graph algorithms like BFS, PageRank, and Weakly Connected Components (WCC). Furthermore, by eliminating the massive metadata overhead associated with per-edge version chains, RapidStore reduced memory usage by up to 56.34%.

In mixed-workload tests (4 writers, 28 readers), RapidStore’s read latency increased by only 13.36%, a stark contrast to other systems that saw increases of up to 41%. Additionally, the C-ART structure proved highly effective for search-heavy tasks such as Triangle Counting, outperforming both CSR-based and log-based storage formats.

5. Conclusion and Future Work

RapidStore demonstrates that coarse-grained versioning and optimized indexing can significantly alleviate the overheads of dynamic graph processing. By shifting the focus from individual edges to subgraphs, the system achieves superior scalability and efficiency.

Future research will explore adaptive partitioning to adjust subgraph boundaries based on real-time access patterns, as well as extending the system to support persistent storage on NVMe SSDs to handle datasets that exceed available RAM.

Summary updated

BibTeX
@article{hao2025rapidstore,
  author = {Chiyu Hao and Jixian Su and Shixuan Sun and Hao Zhang and Sen Gao and Jianwen Zhao and Chenyi Zhang and Jieru Zhao and Chen Chen and Minyi Guo},
  title = {{RapidStore: An Efficient Dynamic Graph Storage System for Concurrent Queries}},
  journal = {Proc. VLDB Endow.},
  year = {2025},
  doi = {10.14778/3748191.3748217},
}
Figure