A Modular Graph-Native Query Optimization Framework

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lyu, Bingqing, Zhou, Xiaoli, Lai, Longbin, Yang, Yufan, Lou, Yunkai, Yu, Wenyuan, Zhou, Jingren
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917866621632512
author Lyu, Bingqing
Zhou, Xiaoli
Lai, Longbin
Yang, Yufan
Lou, Yunkai
Yu, Wenyuan
Zhou, Jingren
author_facet Lyu, Bingqing
Zhou, Xiaoli
Lai, Longbin
Yang, Yufan
Lou, Yunkai
Yu, Wenyuan
Zhou, Jingren
contents Complex Graph Patterns (CGPs), which combine pattern matching with relational operations, are widely used in real-world applications. Existing systems rely on monolithic architectures for CGPs, which restrict their ability to integrate multiple query languages and lack certain advanced optimization techniques. Therefore, to address these issues, we introduce GOpt, a modular graph-native query optimization framework with the following features: (1) support for queries in multiple query languages, (2) decoupling execution from specific graph systems, and (3) integration of advanced optimization techniques. Specifically, GOpt offers a high-level interface, GraphIrBuilder, for converting queries from various graph query languages into a unified intermediate representation (GIR), thereby streamlining the optimization process. It also provides a low-level interface, PhysicalSpec, enabling backends to register backend-specific physical operators and cost models. Moreover, GOpt employs a graph-native optimizer that encompasses extensive heuristic rules, an automatic type inference approach, and cost-based optimization techniques tailored for CGPs. Comprehensive experiments show that integrating GOpt significantly boosts performance, with Neo4j achieving an average speedup of 9.2 times (up to 48.6 times), and GraphsScope achieving an average speedup of 33.4 times (up to 78.7 times), on real-world datasets.
format Preprint
id arxiv_https___arxiv_org_abs_2401_17786
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A Modular Graph-Native Query Optimization Framework
Lyu, Bingqing
Zhou, Xiaoli
Lai, Longbin
Yang, Yufan
Lou, Yunkai
Yu, Wenyuan
Zhou, Jingren
Databases
Performance
Complex Graph Patterns (CGPs), which combine pattern matching with relational operations, are widely used in real-world applications. Existing systems rely on monolithic architectures for CGPs, which restrict their ability to integrate multiple query languages and lack certain advanced optimization techniques. Therefore, to address these issues, we introduce GOpt, a modular graph-native query optimization framework with the following features: (1) support for queries in multiple query languages, (2) decoupling execution from specific graph systems, and (3) integration of advanced optimization techniques. Specifically, GOpt offers a high-level interface, GraphIrBuilder, for converting queries from various graph query languages into a unified intermediate representation (GIR), thereby streamlining the optimization process. It also provides a low-level interface, PhysicalSpec, enabling backends to register backend-specific physical operators and cost models. Moreover, GOpt employs a graph-native optimizer that encompasses extensive heuristic rules, an automatic type inference approach, and cost-based optimization techniques tailored for CGPs. Comprehensive experiments show that integrating GOpt significantly boosts performance, with Neo4j achieving an average speedup of 9.2 times (up to 48.6 times), and GraphsScope achieving an average speedup of 33.4 times (up to 78.7 times), on real-world datasets.
title A Modular Graph-Native Query Optimization Framework
topic Databases
Performance
url https://arxiv.org/abs/2401.17786