Neptunion
ATApache TinkerPop
•Created by Neptunion on 9/11/2024 in #questions
JanusGraph AdjacentVertex Optimization
Hiya,
I'm wondering if anyone has any advice on how to inspect the provider-side optimizations being applied to my gremlin code by janus graph.
Currently when I call
explain
I get the following output.
Which isn't very helpful of course.
Secondly, I'm trying to use explain to figure out whether it's possible to have JanusGraph apply its AdjacentVertex optimisation (can find related code around here) when the vertex is stored dynamically using as
rather then being a id known ahead of time.
i.e. do we get adjacency behaviour from the query
or is it possible to get the behaviour for something similar without using two queries.
Thanks in advance.4 replies
ATApache TinkerPop
•Created by Neptunion on 4/21/2024 in #questions
Is the first traversal pattern evaluated by Match well defined
Hi,
It seems to me that if the match step is able to dynamically select the first traversal pattern (as it does all other traversal patterns), and this selection isn't the same across all traversers, the behaviour of match isn't well defined.
Consider the simple graph
Suppose we have some match statement with two patterns that both capture endpoint vertices x and y, such that the patterns both match x=a, y=c and x=c, y=a.
Extremely long-winded but basically both patterns will move either two out or two in (acyclicly) and capture the endpoints.
If the traverser starting at vertex a evaluates the first pattern first, and the traverser starting at vertex b evaluates the second pattern first; they will both have the same result [(x=a, y=b)], instead of the expected behaviour [(x=a, y=b), (x=b, y=a)].
I'd imagine right now the first pattern is just evaluated, but I'm not entirely sure about if this is guaranteed for OLAP, and it's also not documented as far as I can tell.
2 replies