Skip to main content
QUICK REVIEW

[Paper Review] GraphChi-DB: Simple Design for a Scalable Graph Database System -- on Just a PC

Aapo Kyrola, Carlos Guestrin|arXiv (Cornell University)|Mar 4, 2014
Graph Theory and AlgorithmsComputer Science27 references17 citations
TL;DR

GraphChi-DB introduces a novel disk-based graph storage structure, Partitioned Adjacency Lists (PAL), enabling efficient, scalable graph database operations on a single PC. By combining disk-efficient storage with LSM-tree-based inserts and support for in/out-edge access and attributes, it achieves state-of-the-art performance on billion-edge graphs, outperforming systems like Neo4j on large-scale, out-of-memory workloads while supporting both analytical computation and high-throughput inserts.

ABSTRACT

We propose a new data structure, Parallel Adjacency Lists (PAL), for efficiently managing graphs with billions of edges on disk. The PAL structure is based on the graph storage model of GraphChi (Kyrola et. al., OSDI 2012), but we extend it to enable online database features such as queries and fast insertions. In addition, we extend the model with edge and vertex attributes. Compared to previous data structures, PAL can store graphs more compactly while allowing fast access to both the incoming and the outgoing edges of a vertex, without duplicating data. Based on PAL, we design a graph database management system, GraphChi-DB, which can also execute powerful analytical graph computation. We evaluate our design experimentally and demonstrate that GraphChi-DB achieves state-of-the-art performance on graphs that are much larger than the available memory. GraphChi-DB enables anyone with just a laptop or a PC to work with extremely large graphs.

Motivation & Objective

  • To design a lightweight, disk-based graph storage system that supports efficient queries and high-throughput inserts without requiring cluster-scale infrastructure.
  • To address the limitations of existing graph databases and storage models in handling very large graphs that exceed main memory capacity.
  • To enable both online transaction processing (OLTP) and analytical processing (OLAP) workloads on a single-node system using a unified data structure.
  • To demonstrate that high-performance graph analytics and database operations are feasible on commodity hardware, such as a laptop or PC.
  • To provide a flexible, extensible system that supports edge and vertex attributes, fast in/out-edge traversal, and efficient insertions via LSM-tree adaptation.

Proposed method

  • The core data structure, Partitioned Adjacency Lists (PAL), organizes graph edges into partitioned, immutable flat arrays to enable fast random access to both in- and out-edges without data duplication.
  • PAL supports arbitrary vertex and edge attributes by storing them alongside adjacency data, eliminating the need for separate indices or join operations.
  • The system uses a Log-Structured Merge-tree (LSM-tree) variant to enable high insert throughput—up to hundreds of thousands of edges per second—on standard SSDs.
  • GraphChi-DB integrates the Parallel Sliding Windows (PSW) algorithm from GraphChi for efficient disk-based analytical computation, allowing in-place execution of global graph algorithms.
  • The design leverages memory-mapped files and in-memory indices for fast access, with the entire index structure fitting in main memory even on low-end hardware.
  • The system is tunable: parameters such as partition size, buffer size, and LSM-tree configuration can be adjusted to optimize for read-heavy or write-heavy workloads.

Experimental results

Research questions

  • RQ1Can a single-node system efficiently manage billion-edge graphs that exceed main memory using a simple, compact storage model?
  • RQ2How can both fast query access and high-throughput insertions be achieved in a disk-based graph database without sacrificing performance or data integrity?
  • RQ3Can a unified data structure support both OLTP-style queries and OLAP-style analytical computations efficiently?
  • RQ4To what extent does a simple, immutable data structure like PAL outperform complex, index-heavy systems like Neo4j on large-scale, out-of-memory graphs?
  • RQ5How effective is the LSM-tree adaptation for achieving high insert performance in a graph database context?

Key findings

  • GraphChi-DB outperforms Neo4j on large-scale, out-of-memory graph workloads, particularly for complex queries and traversals on billion-edge graphs.
  • The system achieves high insert performance—hundreds of thousands of edges per second—on a standard laptop using the LSM-tree adaptation, without requiring batch processing.
  • The PAL data structure reduces disk storage overhead compared to traditional graph databases, enabling storage of very large graphs on commodity SSDs.
  • All indices in GraphChi-DB can fit in main memory, minimizing random disk I/O and improving query performance.
  • The system supports both analytical computation (via PSW algorithm) and online transaction processing with minimal performance degradation when tuned appropriately.
  • The design is flexible and can be tuned for different workloads: it performs competitively as an OLAP data warehouse or as an OLTP system with high write throughput.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.