TL;DR
TVA is a novel version-aware temporal graph storage system designed to supercharge real-time graph analytics. By decoupling lightweight version metadata from actual property data and utilizing tailored structures like temporal tables and enhanced hopscotch hashing, TVA drastically minimizes random I/O and redundant traversals. The result is a system that achieves up to 9.9× lower query latency and a 2.2× reduction in storage overhead compared to state-of-the-art temporal graph databases.
What Problem Does This Paper Address?
Real-world graphs—such as financial transaction networks, social networks, and cybersecurity logs—are inherently dynamic. To uncover fraudulent patterns or analyze network evolution, systems must track how vertices (entities) and edges (relationships) change over time using temporal graphs.
However, existing graph storage systems face a painful trade-off between storage footprints and query latency:
- Snapshot-based systems periodically save the entire graph and log changes, requiring computationally expensive reconstructions during queries.
- Version-chain systems append historical changes to data items in linked lists, leading to massive random I/O and redundant traversals when scanning large neighborhoods.
- General-purpose databases (like relational or key-value stores) either suffer from expensive join operations or lack the structural awareness needed for efficient graph traversals.
TVA addresses this gap by designing a storage architecture specifically optimized to handle fine-grained historical versions without sacrificing real-time query performance.
Methods
TVA introduces a hybrid, multi-version storage architecture that separates version metadata from the actual property values.
Key technical innovations include:
- Temporal Property Storage: Current data is stored in an efficient columnar layout for instant access. Historical values are appended to a compact, append-only "Temporal Buffer." The metadata indexing these changes is kept in a tightly packed "Temporal Table."
- Version-Skipping via
NextOffset: To accelerate snapshot queries across multiple vertices, TVA introduces aNextOffsetpointer structure. This links temporally related versions across different rows (vertices), allowing subsequent neighborhood scans to reuse prior temporal context and skip redundant lookups. - Enhanced Hopscotch Hashing for Topologies: For edge updates, TVA separates cold data (infrequently updated, stored in a
SparseArray) from hot data. Hot data is managed via an enhanced Hopscotch Hash Table that co-locates all versions of an edge chronologically within a bounded neighborhood. - SIMD Acceleration: Because the hopscotch neighborhood is bounded and tightly packed, TVA utilizes Single Instruction, Multiple Data (SIMD) instructions to evaluate up to 16 version slots simultaneously, drastically speeding up historical edge lookups.
Datasets
The authors evaluated TVA using a variety of real-world and synthetic graph benchmarks:
- Real-World Graphs: IMDB (actor collaboration), DBLP (co-authorship), YouTube (social network), Epinions (trust network), and Pokec (Slovakian social network).
- Synthetic Benchmarks: LDBC SNB (a standard social network benchmark simulating real-world dynamics) and gMark (a property-intensive benchmark used to stress-test schema management with 24 vertex and 82 edge properties).
- Workloads: Evaluation was driven by three temporal query suites: T-mgBench (point and range queries), T-LDBC (interactive snapshot queries), and T-gMark.
Key Insights and Ideas
- Metadata-Data Separation is Powerful: Storing bulky property values separately from lightweight version metadata allows the system to perform fast in-memory binary searches and SIMD scans on metadata arrays before doing a single, direct pointer dereference to fetch the actual data.
- Exploiting Cross-Query Temporal Locality: Traditional systems evaluate each vertex's history independently. TVA recognizes that temporal queries usually look at the same time window across an entire neighborhood. Linking these histories together via
NextOffsettransforms independent $O(N \cdot N_v)$ searches into a coordinated, highly efficient $O(N)$ scan. - Re-engineering Hashing for Time: Traditional hopscotch hashing is purely a collision-resolution mechanism. TVA twists this concept to enforce chronological ordering within a localized bucket neighborhood, ensuring that time-series graph data naturally aligns with modern CPU SIMD lanes.
Key Results
- Storage Reduction: TVA reduces storage overhead by up to 2.2× compared to AeonG, 3.6× compared to Clock-G, and 4.7× compared to T-GQL.
- Query Speedups: TVA achieves up to 9.9× lower temporal query latency compared to state-of-the-art temporal graph stores. When compared against general-purpose relational baselines like PostgreSQL on multi-hop temporal queries, TVA delivers up to a 126.4× performance leap by eliminating costly joins.
- High-Throughput Updates: Thanks to its hybrid low-degree/high-degree vertex management, TVA maintains high and stable insertion throughput, outperforming Sortledton, GraphOne, and Stinger across almost all evaluation datasets.
Limitations and Future Work
- Low-Degree Vertex Overhead: For graphs dominated by an extreme number of low-degree vertices (vertices with very few connections), TVA's strategy of pre-allocating fixed-size slots in the
SparseArraycan lead to minor storage fragmentation and wasted memory. - Single-Machine Bounds: Currently, TVA is optimized for single-machine, multi-threaded execution with fine-grained snapshot isolation. Scaling this version-aware architecture to distributed graph databases remains an open challenge for future research.
Summary updated