Finding a Second Wind: Speeding Up Graph Traversal Queries in RDBMSs Using Column-Oriented Processing

08/16/2023
by   Mikhail Firsov, et al.
0

Recursive queries and recursive derived tables constitute an important part of the SQL standard. Their efficient processing is important for many real-life applications that rely on graph or hierarchy traversal. Position-enabled column-stores offer a novel opportunity to improve run times for this type of queries. Such systems allow the engine to explicitly use data positions (row ids) inside its core and thus, enable novel efficient implementations of query plan operators. In this paper, we present an approach that significantly speeds up recursive query processing inside RDBMSes. Its core idea is to employ a particular aspect of column-store technology (late materialization) which enables the query engine to manipulate data positions during query execution. Based on it, we propose two sets of Volcano-style operators intended to process different query cases. In order validate our ideas, we have implemented the proposed approach in PosDB, an RDBMS column-store with SQL support. We experimentally demonstrate the viability of our approach by providing a comparison with PostgreSQL. Experiments show that for breadth-first search: 1) our position-based approach yields up to 6x better results than PostgreSQL, 2) our tuple-based one results in only 3x improvement when using a special rewriting technique, but it can work in a larger number of cases, and 3) both approaches can't be emulated in row-stores efficiently.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/17/2023

Hybrid Materialization in a Disk-Based Column-Store

In column-oriented query processing, a materialization strategy determin...
research
04/08/2020

A Comparative Analysis of Knowledge Graph Query Performance

As Knowledge Graphs (KGs) continue to gain widespread momentum for use i...
research
04/20/2020

MorphStore: Analytical Query Engine with a Holistic Compression-Enabled Processing Model

In this paper, we present MorphStore, an open-source in-memory columnar ...
research
04/13/2023

SIGNAL – The SAP Signavio Analytics Query Language

This paper provides an introduction to and discussion of SIGNAL, an indu...
research
01/13/2020

Testing Database Engines via Pivoted Query Synthesis

Relational databases are used ubiquitously. They are managed by database...
research
02/03/2020

Optimizing Query Predicates with Disjunctions for Column Stores

Since its inception, database research has given limited attention to op...
research
04/08/2020

The Effects of Different JSON Representations on Querying Knowledge Graphs

Knowledge Graphs (KGs) have emerged as the de-facto standard for modelin...

Please sign up or login with your details

Forgot password? Click here to reset