Database Theory in Action: From Inexpressibility to Efficiency in GQL's Order-Constrained Paths
By: Hadar Rotschield, Liat Peterfreund
Potential Business Impact:
Makes graph searches faster and more complete.
Pattern matching of core GQL, the new ISO standard for querying property graphs, cannot check whether edge values are increasing along a path, as established in recent work. We present a constructive translation that overcomes this limitation by compiling the increasing-edges condition into the input graph. Remarkably, the benefit of this construction goes beyond restoring expressiveness. In our proof-of-concept implementation in Neo4j's Cypher, where such path constraints are expressible but costly, our compiled version runs faster and avoids timeouts. This illustrates how a theoretically motivated translation can not only close an expressiveness gap but also bring practical performance gains.
Similar Papers
Answering Constraint Path Queries over Graphs
Databases
Finds hidden patterns in complex data faster.
Querying Graph-Relational Data
Programming Languages
Connects app data to database easily.
On the Expressiveness of Languages for Querying Property Graphs in Relational Databases
Databases
Lets computers find patterns in connected data.