Hi everyone,
I've configured a graph via Rexster with vertex-centric index on a "Name" key. So
I populated the graph with a few thousand nodes and the query g.V.has("Name","anyName")
through Rexster was about 80% faster than without vertex-centric index. But I've
written a gremlin DSL which has a step that does the same query:
Gremlin.defineStep('anyName',[Vertex,Pipe],
{anyName -> _().ifThenElse
{anyName != null}
{it.has('Name',anyName)}
{null}
})
But if I run this step, for example, g.V.anyName("name") it runs as slowly as
the isolated g.V.has("Name","name") query without vertex-centrix index in
property "Name". I did not find a specific documentation, so I was wondering
if I was missing some configuration or piece of code for the DSL script which
can be used to make gremlin defined steps take advantage of indexes.
Thanks in advance,