Skip to main content
QUICK REVIEW

[Paper Review] Graph Analytics using the Vertica Relational Database

Alekh Jindal, Samuel Madden|arXiv (Cornell University)|Dec 17, 2014
Graph Theory and AlgorithmsComputer Science9 references6 citations
TL;DR

This paper demonstrates that Vertica, a column-oriented relational database, can efficiently perform graph analytics—comparable to specialized vertex-centric systems like Giraph and GraphLab—by expressing graph algorithms as SQL queries involving table scans, joins, and aggregates. It shows that relational databases, especially column-stores, are well-suited for iterative and complex graph workloads, while enabling seamless integration with relational operations and inheriting ACID properties.

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.

Motivation & Objective

  • To evaluate whether a relational database like Vertica can efficiently support graph analytics without requiring data movement to a dedicated graph system.
  • To investigate if complex graph analytics, including iterative and 1-hop neighborhood computations, can be effectively expressed and optimized in SQL.
  • To compare the performance of Vertica against dedicated vertex-centric graph systems (Giraph, GraphLab) on standard graph workloads.
  • To explore the benefits of combining graph and relational operations within a single system, avoiding costly data movement and system coordination.
  • To assess the feasibility of using RDBMS features—such as query optimization, ACID compliance, and extensibility—for scalable graph processing.

Proposed method

  • Translating vertex-centric graph algorithms into SQL queries using table scans, self-joins, and aggregate operations on node and edge tables.
  • Leveraging Vertica’s columnar storage, compression, and sort-based physical optimization to accelerate full-table scans and multi-join operations common in graph analytics.
  • Using table UDFs (User-Defined Functions) to reduce disk I/O and improve performance in iterative graph algorithms by managing memory and data layout.
  • Employing Vertica’s query optimizer to generate pipelined, cost-based physical execution plans that avoid materializing intermediate results.
  • Expressing complex graph patterns—like triangle counting and weak tie detection—using multi-join SQL queries, which are more natural and efficient than vertex-centric message-passing models.
  • Benchmarking end-to-end performance across multiple graph workloads, including PageRank, shortest paths, triangle counting, and neighborhood analysis.

Experimental results

Research questions

  • RQ1Can a relational database system like Vertica achieve performance competitive with specialized vertex-centric graph processing systems such as Giraph and GraphLab?
  • RQ2To what extent can complex graph analytics—especially those involving 1-hop neighborhoods or multi-vertex relationships—be effectively expressed in SQL?
  • RQ3How does combining graph and relational operations within a single system improve performance and usability compared to using separate systems?
  • RQ4What role do columnar storage and query optimization play in accelerating graph analytics workloads in RDBMS?
  • RQ5Can RDBMS features such as ACID compliance, fault tolerance, and transaction support be leveraged for graph processing without sacrificing performance?

Key findings

  • Vertica achieves end-to-end performance comparable to Giraph and GraphLab on a range of graph analytics workloads, including iterative algorithms like PageRank and shortest paths.
  • The performance advantage of columnar storage in Vertica is especially pronounced for full-table scans and multi-join operations typical in graph analytics, such as triangle counting via three-way self-joins.
  • SQL-based expression of 1-hop neighborhood analysis—such as detecting weak ties—was significantly more efficient and easier to implement than in vertex-centric models, which require multiple supersteps and message passing.
  • Using table UDFs reduced disk I/O and improved performance in iterative queries by allowing better memory management and data layout control.
  • The query optimizer in Vertica automatically selected efficient, pipelined execution plans, avoiding intermediate materialization and outperforming static execution plans in systems like Giraph.
  • The integration of relational and graph operations within a single system eliminated data movement overhead and enabled seamless preprocessing and post-processing, such as filtering edges by timestamp or aggregating results.

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.