Re: Query requires iterating over all vertices


Boxuan Li
 

Try rewriting your query as:

`  g.V().has("country", P.neq(null)).values("country").dedup().order().limit(10)`

FYI starting from the upcoming 0.6.0 release, has("country") will leverage the mixed index. See https://github.com/JanusGraph/janusgraph/pull/2175 for more details.

Join {janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.