NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Graph Analytics using the Vertica Relational Database

Alekh Jindal, Samuel Madden, Malú Castellanos, Meichun HsuarXiv 2014

Abstract

Graph analytics is becoming increasingly popular, with a deluge of new systems for graph analytics having been proposed in the past few years. These systems often start from the assumption that a new storage or query processing system is needed, in spite of graph data being often collected and stored in a relational database in the first place. In this paper, we study Vertica relational database as a platform for graph analytics. We show that vertex-centric graph analysis can be translated to SQL queries, typically involving table scans and joins, and that modern column-oriented databases are very well suited to running such queries. Specifically, we present an experimental evaluation of the Vertica relational database system on a variety of graph analytics, including iterative analysis, a combination of graph and relational analyses, and more complex 1-hop neighborhood graph analytics, showing that it is competitive to two popular vertex-centric graph analytics systems, namely Giraph and GraphLab.

Introduction

The recent explosion of graph-structured data has led to a "deluge" of specialized graph processing systems like Pregel, Giraph, and GraphLab. These systems are built on the premise that traditional relational databases (RDBMS) are fundamentally ill-suited for iterative graph workloads. However, this specialization introduces significant operational friction. Most enterprise data resides in RDBMS; exporting billions of edges to a separate graph engine is time-consuming and complicates "mixed" analysis—scenarios where graph algorithms must be restricted by relational metadata (e.g., filtering a social graph by user demographics).

The physical execution pipeline of the Giraph vertex-centric system, illustrating the superstep model that specialized engines employ.

This research explores whether a modern, column-oriented RDBMS like Vertica can bridge this gap. By leveraging optimized join engines and columnar storage, can an RDBMS match the performance of specialized engines while maintaining the flexibility of SQL?

Methodology: The Vertexica Framework

The researchers developed Vertexica, a framework designed to map the "think-like-a-vertex" programming model onto relational operations. The core challenge lies in translating iterative message-passing logic into efficient SQL.

Logical Translation and Optimization

A single "superstep" in a vertex-centric model is represented as a join between a Vertex table and an Edge table, followed by an aggregation of messages. As shown in the transformation steps below, the logical query plan can be optimized by pushing down User Defined Functions (UDFs) and replacing abstract message passing with concrete relational joins.

Transformation of a vertex-centric logical query plan into a relational plan through UDF pushdown and join optimization.

Key implementation strategies include:

  • Update vs. Replace: Column-stores struggle with in-place updates. Vertexica instead creates new versions of the vertex table per iteration, which proves significantly faster.
  • Incremental Evaluation: By tracking "active" vertices—those whose values changed in the previous round—the system minimizes the data processed in each join.
  • Shared-Memory UDFs: To bypass the overhead of per-iteration disk I/O, a specialized UDF loads the graph into shared memory once, enabling rapid iterative updates within the database engine.

Experimental Evaluation

The system was tested against Giraph and GraphLab using large-scale datasets from the SNAP repository, most notably a Twitter graph containing 1.46 billion edges and 41 million nodes.

Key Insights

  • The RDBMS Advantage: Graph traversals are essentially joins and aggregates—operations RDBMS engines have optimized for decades. Columnar layouts are particularly effective for these patterns.
  • Mixed Workload Efficiency: SQL excels at pre-processing. While specialized engines often require separate MapReduce jobs to filter graphs, Vertica performs these operations natively, leading to up to a 17x speedup in mixed relational-graph queries.
  • Resource Management: Specialized engines are often memory-bound and prone to failure on massive graphs. Vertica, being disk-based, handled the Twitter graph with a peak memory footprint of just 5.2GB, compared to the 32GB required by Giraph and GraphLab.

Results and Conclusion

The evaluation demonstrates that Vertica is highly competitive. On standard benchmarks like PageRank and Shortest Path, its performance matched or exceeded specialized engines. The shared-memory UDF implementation further provided a 2.6x speedup over native SQL by reducing disk I/O.

While peak performance currently requires some manual SQL tuning and physical design (e.g., specific sort orders), the results challenge the necessity of specialized graph silos. Future work aims to automate the "Graph-to-SQL" optimization process and extend the shared-memory UDFs to distributed environments.

Summary updated

BibTeX
@misc{jindal2014graph,
  author = {Alekh Jindal and Samuel Madden and Malú Castellanos and Meichun Hsu},
  title = {{Graph Analytics using the Vertica Relational Database}},
  year = {2014},
  eprint = {1412.5263},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1412.5263},
}
Figure