Replies: 5 comments
-
Wondering is this something related to the edge index? as all my edges has labeled. as I see the second query says |
Beta Was this translation helpful? Give feedback.
-
Janusgraph have to went overall edges independent from the direction. This issue can't be easily changed in the moment, see https://docs.janusgraph.org/latest/data-model.html. |
Beta Was this translation helpful? Give feedback.
-
Hmmm. this doesn't explain it doesn't go through |
Beta Was this translation helpful? Give feedback.
-
What @farodin91 meant was that according to that article in the docs, all edges are just stored as an adjacency list in one row. The section Individual Edge Layout shows that the label id is stored together with the edge direction in one cell which is used for sorting the edges in the adjacency list. That would explain why you see a better performance when you specify the edge direction together with the edge label as you do in your 2nd example compared to the scenario where you just specify the direction. |
Beta Was this translation helpful? Give feedback.
-
Thanks @FlorianHockmann and @farodin91 for the explanation, it just feels confusing when calling inE() and outE() are actually the same as bothE(). So what would be the best practical solution for this as I can image it is a quite common scenario among quires. Approach we tried:
What is your recommendation of doing this in an efficient way? thanks. |
Beta Was this translation helpful? Give feedback.
-
This cost long wait where the vertex has lots of incoming edges but no outgoing edges, and when I query on out(), it still evaluates incoming edges?
However, if I add conditions to filter by edge label, it doesn't evaluate all edges:
Looks like a bug or I miss Sth. here?
Thanks,
Alex
Beta Was this translation helpful? Give feedback.
All reactions