Dangers of List Processing in Querying Property Graphs
Amélie Gheerbrant, Leonid Libkin, Alexandra Rogova
Abstract
The workhorse of property graph query languages such as Cypher and GQL is pattern matching. The result of pattern matching is a collection of paths and mappings of variables to graph elements. To increase expressiveness of post-processing of pattern matching results, languages such as Cypher introduce the capability of creating lists of nodes and edges from matched paths, and provide users with standard list processing tools such as reduce. We show that on the one hand, this makes it possible to capture useful classes of queries that pattern matching alone cannot do. On the other hand, we show that this opens backdoor to very high and unexpected expressiveness. In particular one can very easily express several classical NP-hard problems by simple queries that use reduce. This level of expressiveness appears to be beyond what query optimizers can handle, and indeed this is confirmed by an experimental evaluation, showing that such queries time out already on very small graphs. We conclude our analysis with a suggestion on the use of list processing in queries that while retaining its usefulness, avoids the above pitfalls and prevents highly intractable queries.
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 7bfc5374-4722-4662-b464-8916a6aa21c5Related papers
- Transforming Property GraphsAngela Bonifati, Filip Murlak, Yann RamusatVLDB 2024 · 9 citations
- G-View: View Management for Graph DatabasesYunjia Zheng, Charlotte Sacré, Mohanna Shahrad, Owen Lipchitz et al.VLDB 2025
- A Unified Query Planning Framework for Conjunctive Regular Path QueriesYue Pang, Lei Zou, Angela Bonifati, M. Tamer Özsu et al.VLDB 2026
- Envisage: Towards Expressive Visual Graph QueryingXiaolin Wen, Qishuang Fu, Shuangyue Han, Yichen Guo et al.IEEE VIS 2025 · 6 citations
- MGQL: An Executable, Small-Step Semantics of GQLAditya Thimmaiah, Tong-Nong Lin, Milos GligoricOOPSLA 2026
