Replies: 1 comment 9 replies
-
This is discussed in https://docs.janusgraph.org/schema/index-management/index-performance/#using-vertex-centric-indexes-on-adjacent-vertex-ids Retrieving vertices further in a traversal before filtering is not very expensive (compared to performing a full table scan), unless your graph has lots of "other edges". In the latter case, the link above provides a solution, at the cost of some additional code. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Assuming we have such traversal:
g.V().has('first_indexed_prop', 'first_value').out('some_edge').out('some_other_edge').has('other_indexed_prop','other_value').out().count().next()
will JanusGraph be able to use the index we have on
other_indexed_prop
of the Vertex? (when I run it with profile() it seems as if it doesn't use it, even when its a mixed index)or do we need to add other_indexed_prop as a property of the edge (some_other_edge) and add an edge index in order for JG to be able to use another index in the middle of a traversal?
Thanks,
Roi
Beta Was this translation helpful? Give feedback.
All reactions