A Unified Query Planning Framework for Conjunctive Regular Path Queries
Yue Pang, Lei Zou, Angela Bonifati, M. Tamer Özsu, Xiaofang Zhou
Abstract
Conjunctive regular path queries (CRPQs) form a critical backbone of modern graph query languages, integrating subgraph matching with regular path queries (RPQs). Despite their ubiquity in applications like social networks, finance, and scientific data analysis, CRPQ optimization lacks a unified framework, relying instead on heuristic combinations of disjoint techniques for subgraph matching and RPQs. This paper bridges this gap by introducing a novel algebraic optimization framework for CRPQs. We propose a hypergraph query model that enables composability, addressing a longstanding challenge in graph query languages including GQL and SQL/PGQ, and define six core operators (TI, KC, SJ, UNION, INV, and SCAN) to abstract CRPQ semantics. Leveraging algebraic transformation rules, we enumerate a rich space of equivalent query plans and devise a cost-based optimizer to select near-optimal plans for execution. Implemented based on MillenniumDB and Neo4j, our framework achieves significant speedups on CRPQs extracted from the WDBench and LDBC SNB benchmarks.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 81dbe6ae-db36-4bcd-802f-4cdc7b886636Builds on5
- Versatile Equivalences: Speeding up Subgraph Query Processing and Subgraph MatchingHyunjoon Kim, Yunyoung Choi, Kunsoo Park, Xuemin Lin et al.SIGMOD 2021 · 75 citations
- A Comprehensive Survey and Experimental Study of Subgraph Matching: Trends, Unbiasedness, and InteractionZhijie Zhang, Yujie Lu, Weiguo Zheng, Xuemin LinSIGMOD 2024 · 35 citations
- Fast Continuous Subgraph Matching over Streaming Graphs via Backtracking ReductionRongjian Yang, Zhijie Zhang, Weiguo Zheng, Jeffrey Xu YuSIGMOD 2023 · 31 citations
- GQL and SQL/PGQ: Theoretical Models and Expressive PowerAmélie Gheerbrant, Leonid Libkin, Liat Peterfreund, Alexandra RogovaVLDB 2025 · 16 citations
- Materialized View Selection & View-Based Query Planning for Regular Path QueriesYue Pang, Lei Zou, Jeffrey Xu Yu, Linglin YangSIGMOD 2024 · 7 citations
Related papers
- cuRPQ: A High-Performance GPU-Based Framework for Processing Regular and Conjunctive Regular Path QueriesSungwoo Park, Seohyeon Kim, Min-Soo KimSIGMOD 2026 · 1 citation
- Towards a Converged Relational-Graph Optimization FrameworkYunkai Lou, Longbin Lai, Bingqing Lyu, Yufan Yang et al.SIGMOD 2025 · 4 citations
- On the Optimization of Recursive Relational Queries: Application to Graph QueriesLouis Jachiet, Pierre Genevès, Nils Gesbert, Nabil LayaïdaSIGMOD 2020 · 31 citations
- MGQL: An Executable, Small-Step Semantics of GQLAditya Thimmaiah, Tong-Nong Lin, Milos GligoricOOPSLA 2026
- Temporal Regular Path QueriesMarcelo Arenas, Pedro Bahamondes, Amir Aghasadeghi, Julia StoyanovichICDE 2022 · 11 citations
