Abstract
Graph databases (GDBs) are crucial in academic and industry applications. The key challenges in developing GDBs are achieving high performance, scalability, programmability, and portability. To tackle these challenges, we harness established practices from the HPC landscape to build a system that outperforms all past GDBs presented in the literature by orders of magnitude, for both OLTP and OLAP workloads. For this, we first identify and crystallize performance-critical building blocks in the GDB design, and abstract them into a portable and programmable API specification, called the Graph Database Interface (GDI), inspired by the best practices of MPI. We then use GDI to design a GDB for distributed-memory RDMA architectures. Our implementation harnesses one-sided RDMA communication and collective operations, and it offers architecture-independent theoretical performance guarantees. The resulting design achieves extreme scales of more than a hundred thousand cores. Our work will facilitate the development of next-generation extreme-scale graph databases.
Introduction: The GDB Quadrilemma
Graph Databases (GDBs) have become indispensable for analyzing complex relationships in domains ranging from social network analysis to drug discovery. However, developers currently face a "quadrilemma" where they must often sacrifice one of four critical pillars: Performance, Scalability, Programmability, or Portability.
As datasets expand toward tens of trillions of edges, traditional GDBs struggle to maintain performance. Furthermore, the tight coupling between database logic and hardware-specific storage makes porting a codebase to new architectures a tedious and expensive endeavor. Most existing systems also specialize in either transactional tasks (OLTP) or analytical tasks (OLAP), but rarely excel at both at extreme scales. This research addresses these challenges by introducing a standardized interface that brings High-Performance Computing (HPC) principles to the graph database world.
The Graph Database Interface (GDI)
To solve the portability and programmability issues, the researchers introduced the Graph Database Interface (GDI). Inspired by the Message Passing Interface (MPI) standard used in HPC, GDI provides a portable API that decouples the high-level database logic from the low-level hardware implementation.
GDI abstracts performance-critical building blocks—such as vertex/edge CRUD operations, transactions, and indexing—into a set of standardized routines. This allows the "middle layer" of a database to remain hardware-agnostic, enabling developers to write graph queries once and run them on anything from a single laptop to a massive supercomputer without logic changes.
High-Performance Implementation: GDI-RMA
To demonstrate the power of this interface, the authors developed GDI-RMA, a high-performance implementation designed for distributed-memory architectures. This system leverages several key HPC techniques:
- Remote Memory Access (RMA): By using one-sided RDMA communication (puts, gets, and atomics), the system allows one server to access another's memory directly. This bypasses the OS and CPU overhead of the target machine, resulting in sub-microsecond local latencies.
- Collective Operations: For massive analytical queries, GDI-RMA employs optimized communication patterns that involve all processes simultaneously, a technique rarely utilized in traditional GDB design.
- Blocked Graph Data Layout (BGDL): To manage memory efficiently across thousands of nodes, the team developed a layout that breaks complex graph structures into fixed-size blocks, simplifying RDMA transfers and improving cache locality.
- Volatile IDs: GDI utilizes internal "volatile" IDs valid only during a transaction. This allows the system to move data for load balancing behind the scenes without disrupting the user's view of the graph.
Unprecedented Scaling Results
The system was evaluated on the Piz Daint supercomputer using massive datasets, including Kronecker graphs with up to 34.4 billion vertices and 550 billion edges, and real-world hyperlink graphs from Web Data Commons.
The results represent a significant leap over existing industry leaders. GDI-RMA successfully scaled to 121,680 cores across 7,142 servers. In direct comparisons, it outperformed established systems like Neo4j and JanusGraph by more than an order of magnitude in both throughput and latency. For instance, the system processed a Breadth-First Search (BFS) query on a 128-billion-edge graph in approximately 15 seconds using 1,024 servers.
Conclusion and Future Work
GDI represents an "MPI moment" for graph databases, providing the necessary abstraction to achieve extreme scale without sacrificing portability. While the current GDI-RMA implementation excels on RDMA-enabled interconnects common in HPC environments, future work will focus on improving load balancing for heterogeneous clusters and extending the interface to support other data models like RDF and Graph Neural Network (GNN) training workflows. This work lays the foundation for the next generation of extreme-scale, hardware-independent graph analytics.
Summary updated