PETGraphDB: A Property Evolution Temporal Graph Data Management System

Jinghe Song, Zongyu Zuo, Xuelian Lin, Yang Wang, Shuai MaarXiv 2025 · DOI

Introduction

PETGraphDB is a specialized database system designed for "Property Evolution Temporal Graphs" (PETGs)—networks where the connections remain relatively stable, but the data attached to them (like traffic speed or power voltage) changes rapidly. By introducing a novel tree-based storage structure and time-aware concurrency control, it achieves up to 267x lower query latency and uses only 1/3 the storage space of traditional relational databases.

The Challenge: Property Evolution Temporal Graphs

As the Internet of Things (IoT) expands, we are drowning in data generated by sensors attached to physical networks, such as power grids and traffic systems. These are temporal graphs, but they have a specific characteristic: the "shape" of the network (topology) rarely changes, but the "values" on the edges (properties) change every second.

Conceptual model of a Property Evolution Temporal Graph (PETG) showing stable topology with time-varying properties.

The authors identify four major failings in current systems (like Neo4j or PostgreSQL) when handling this data:

  1. In-intuitive Modeling: Users have to "hack" time into static models, making queries complex.
  2. Massive Storage Waste: IoT sensors often report the same value repeatedly, but standard databases struggle to deduplicate this temporal redundancy.
  3. High Latency: Finding the history of a specific node requires scanning through mixed topological and property data.
  4. Poor Concurrency: Standard locking mechanisms are too "coarse." If one process updates a road's status for 8:00 AM, it might block another process from updating the same road for 9:00 AM.

System Design and Innovation

The authors built PETGraphDB from the ground up to treat time as a first-class citizen. Key innovations include:

  • TCypher: An extension of the popular Cypher query language. It adds native support for "Time Interval Series," allowing users to query history as easily as they query a static relationship.
  • TIM-Tree (Temporal Interval Merge Tree): This is the core storage engine. Inspired by Log-Structured Merge (LSM) trees, it partitions data first by property type and then by time intervals. This ensures that "Entity-History" queries (e.g., "Show me the speed of this road over the last hour") only touch the exact data needed.
The TIM-Tree structure, the core storage engine of PETGraphDB, optimized for temporal property queries.
  • Temporal Coalescing: To save space, the system automatically merges adjacent time points with identical values into a single interval (e.g., instead of 60 entries for "60mph" every minute, it stores one entry for "60mph for 1 hour").
  • Fine-Grained Multi-Level Locking: Unlike standard databases that lock an entire record, PETGraphDB can lock a specific property for a specific time window. This allows high-concurrency "HTAP" (Hybrid Transactional/Analytical Processing) workloads.

Evaluation and Datasets

The system was evaluated against three major benchmarks:

  1. Traffic: Real-world data from Beijing’s traffic network (41GB, 1.39 billion edge updates).
  2. Energy: Data from the European renewable energy power system (3.7GB, 39 million node updates).
  3. SYN: A massive synthetic dataset generated to test the limits of the system (106GB, 4 billion updates).

Key Insights

  • Valid-Time vs. Transaction-Time: Most databases track when data was recorded. PETGraphDB focuses on "valid-time"—when the data was actually true in the real world. This is critical for reconstructing historical states of physical systems.
  • Redundancy is a Feature: In PETG data, values often stay "smooth" for long periods (e.g., a road is "clear" all night). By treating these as continuous intervals rather than discrete points, the authors turned a data-volume problem into a compression opportunity.
  • Data Locality: By sorting data by property and then time on disk, the system ensures that historical queries involve sequential disk reads, which are significantly faster than the random seeks required by relational joins.

Performance Results

The experimental results show that PETGraphDB dominates existing solutions (PostgreSQL, MariaDB, and Neo4j):

  • Storage Efficiency: It requires only 33% of the disk space used by the current best solution (PostgreSQL) due to its interval coalescing.
  • Throughput: It achieves 58.8x higher transaction throughput in mixed workloads.
  • Latency: Query response times are 267x faster on average.
  • Complex Analytics: In a "Reachable Area" query (finding all nodes reachable within a time limit given dynamic traffic), PETGraphDB was 119x faster than PostgreSQL.

Conclusion and Future Work

While PETGraphDB demonstrates significant performance gains, there are areas for expansion:

  • Single-Machine Focus: PETGraphDB is currently a single-machine system. A distributed version would be necessary for global-scale IoT applications.
  • Topology Stability: The system is specifically optimized for stable topologies. If the graph structure itself changed as frequently as the properties, the TIM-Tree's performance advantages might diminish.
  • Memory Management: Future work could explore more sophisticated caching strategies for extremely memory-constrained environments.

Summary updated

BibTeX
@misc{song2025petgraphdb,
  author = {Jinghe Song and Zongyu Zuo and Xuelian Lin and Yang Wang and Shuai Ma},
  title = {{PETGraphDB: A Property Evolution Temporal Graph Data Management System}},
  year = {2025},
  eprint = {2512.05417},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.05417},
}
Figure