Out edge of vertex is slow
When i run this below query:
"g.V().has("guid", "6203620951906330066").limit(10).out("matching").profile().toSet()"
And I see step "JanusGraphVertexStep(OUT,[matching],vertex)" take a lot of time. Is there any way to solve this?
8 Replies
could someone from @janusgraph have a look at this one please?
@Dinh Phu Do you have
query.batch
set to true?Yes
Yes
It does not seem so. If it's enabled, you should see
JanusGraphMultiQueryStep
in the profile resulti' sorry, i'm wrong. It query.batch default is false and i don't change it
No worries! It's by default enabled since 1.0 but if you're using an older version (0.6 or prior versions), then it's by default disabled.
Try enabling it - you should be able to see some performance improvement
You will see difference if you change
limit(10)
to limit(100)
or more
query.batch
basically executes the out("matching")
step in parallel. The latency still depends on the longest query. From the original profiler output, it seems it takes significantly more time for some vertices than the others.
What's your hardware setup? Is your backend storage geo distributed?