Boxuan Li
Aug 20, 2023

--

Hi, the last step will not use index, because usually it's not worth doing so. JanusGraph does not store any statistics/histogram about your data, so it cannot make an intelligent decision that last step might be cheaper if it uses index. If you know using an index at last step would be better, you could split your queries into two parts and do this in three steps: 1) Do traversal and find a list of vertices, 2) Use query to find all vertices that match the predicate (filter condition) globally, 3) intersect the results from step 1 and step 2.

--

--

Boxuan Li
Boxuan Li

Written by Boxuan Li

Software Engineer at Microsoft & Open-source Enthusiast https://github.com/li-boxuan

No responses yet