Spruce: a Fast yet Space-saving Structure for Dynamic Graph Storage
Open Access
- 12 March 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Management of Data
- Vol. 2 (1) , 1-26
Abstract
Dynamic graphs have been gaining increasing popularity across various application domains. With the growing size of these graphs, the update performance as well as space occupancy is becoming a crucial aspect of dynamic graph storage. Although existing dynamic graph systems can handle massive streaming updates (e.g., insertions and deletions), they cannot achieve both high throughput and low memory footprint. Drawing inspiration from the basic operations of the van Emde Boas (vEB) tree in double-logarithmic time, we designed Spruce, a high-performance yet space-saving in-memory structure to store dynamic graphs. Spruce uses a compact representation to construct the tree-like multilevel structure, which shares the common prefixes of vertices and has no merging or splitting of nodes to achieve the requirements of low memory consumption and high-efficiency dynamic operations. Furthermore, Spruce incorporates a read-optimized concurrency protocol, which refines ROWEX and Optimistic Locking, to facilitate efficient simultaneous read/write operations. Our experiment demonstrates that compared to Sortledton (the best of competitors), Spruce is up to 2.4X faster in ingesting graph updates, while saving up to 38.5% of memory space. As for graph analytics, Spruce shows high adaptability to different analytical workloads, and achieves comparable performance to other state-of-the-art dynamic graph structures.Keywords
Funding Information
- National Nature Science Foundation of China (61672480)
- 111 Project 2.0 (BP0719016)
This publication has 53 references indexed in Scilit:
- Minimizer-space de Bruijn graphs: Whole-genome assembly of long reads in minutes on a personal computerCell Systems, 2021
- Packed Compressed Sparse Row: A Dynamic Graph Representation2018
- Incremental, iterative data processing with timely dataflowCommunications of the ACM, 2016
- SpannerACM Transactions on Computer Systems, 2013
- LigraACM SIGPLAN Notices, 2013
- Improved Algorithms for Finding Gene Teams and Constructing Gene Team TreesIEEE/ACM Transactions on Computational Biology and Bioinformatics, 2010
- An adaptive packed-memory arrayACM Transactions on Database Systems, 2007
- R-MAT: A Recursive Model for Graph Mining2004
- Efficient Regular Data Structures and Algorithms for Dilation, Location, and Proximity ProblemsAlgorithmica, 2001
- On optimistic methods for concurrency controlACM Transactions on Database Systems, 1981