Towards a Converged Relational-Graph Optimization Framework

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lou, Yunkai, Lai, Longbin, Lyu, Bingqing, Yang, Yufan, Zhou, Xiaoli, Yu, Wenyuan, Zhang, Ying, Zhou, Jingren
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917862280527872
author Lou, Yunkai
Lai, Longbin
Lyu, Bingqing
Yang, Yufan
Zhou, Xiaoli
Yu, Wenyuan
Zhang, Ying
Zhou, Jingren
author_facet Lou, Yunkai
Lai, Longbin
Lyu, Bingqing
Yang, Yufan
Zhou, Xiaoli
Yu, Wenyuan
Zhang, Ying
Zhou, Jingren
contents The recent ISO SQL:2023 standard adopts SQL/PGQ (Property Graph Queries), facilitating graph-like querying within relational databases. This advancement, however, underscores a significant gap in how to effectively optimize SQL/PGQ queries within relational database systems. To address this gap, we extend the foundational SPJ (Select-Project-Join) queries to SPJM queries, which include an additional matching operator for representing graph pattern matching in SQL/PGQ. Although SPJM queries can be converted to SPJ queries and optimized using existing relational query optimizers, our analysis shows that such a graph-agnostic method fails to benefit from graph-specific optimization techniques found in the literature. To address this issue, we develop a converged relational-graph optimization framework called RelGo for optimizing SPJM queries, leveraging joint efforts from both relational and graph query optimizations. Using DuckDB as the underlying relational execution engine, our experiments show that RelGo can generate efficient execution plans for SPJM queries. On well-established benchmarks, these plans exhibit an average speedup of 21.90x compared to those produced by the graph-agnostic optimizer.
format Preprint
id arxiv_https___arxiv_org_abs_2408_13480
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Towards a Converged Relational-Graph Optimization Framework
Lou, Yunkai
Lai, Longbin
Lyu, Bingqing
Yang, Yufan
Zhou, Xiaoli
Yu, Wenyuan
Zhang, Ying
Zhou, Jingren
Databases
The recent ISO SQL:2023 standard adopts SQL/PGQ (Property Graph Queries), facilitating graph-like querying within relational databases. This advancement, however, underscores a significant gap in how to effectively optimize SQL/PGQ queries within relational database systems. To address this gap, we extend the foundational SPJ (Select-Project-Join) queries to SPJM queries, which include an additional matching operator for representing graph pattern matching in SQL/PGQ. Although SPJM queries can be converted to SPJ queries and optimized using existing relational query optimizers, our analysis shows that such a graph-agnostic method fails to benefit from graph-specific optimization techniques found in the literature. To address this issue, we develop a converged relational-graph optimization framework called RelGo for optimizing SPJM queries, leveraging joint efforts from both relational and graph query optimizations. Using DuckDB as the underlying relational execution engine, our experiments show that RelGo can generate efficient execution plans for SPJM queries. On well-established benchmarks, these plans exhibit an average speedup of 21.90x compared to those produced by the graph-agnostic optimizer.
title Towards a Converged Relational-Graph Optimization Framework
topic Databases
url https://arxiv.org/abs/2408.13480