Skip to content

How to speed up valueMap, values, properties query? #3638

Answered by porunov
vitaliishandra asked this question in Q&A
Discussion options

You must be logged in to vote

We have queries like this: g.V().has('AccountId', 1).out('Direct'). It is executed few milliseconds and returns ~13000 results. However when I try to query the values using one of the follwoing queries it took about 35-45 seconds to complete:
g.V().has('AccountId', 1).out('Direct').values('uid')
g.V().has('AccountId', 1).out('Direct').valueMap()
g.V().has('AccountId', 1).out('Direct').properties('uid')

Any ideas how it can be improved? query.batch is enabled.
Jnausgraph version 0.6, backend storage: Cassandra.

You need to enable multiquery (it will be enabled by default from JanusGraph version 1.0.0).
It will make values step faster.
That said, valueMap is not going to leverage that opt…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@vitaliishandra
Comment options

@porunov
Comment options

@porunov
Comment options

@vitaliishandra
Comment options

@vitaliishandra
Comment options

Answer selected by vitaliishandra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants