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
spmallette
spmallette2y ago
could someone from @janusgraph have a look at this one please?
Bo
Bo2y ago
@Dinh Phu Do you have query.batch set to true?
Dinh Phu
Dinh PhuOP2y ago
Yes Yes
Bo
Bo2y ago
It does not seem so. If it's enabled, you should see JanusGraphMultiQueryStep in the profile result
Dinh Phu
Dinh PhuOP2y ago
i' sorry, i'm wrong. It query.batch default is false and i don't change it
Bo
Bo2y ago
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
Dinh Phu
Dinh PhuOP2y ago
no different after I enable it
Bo
Bo2y ago
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?
Want results from more Discord servers?
Add your server