orientdb-gremlin
orientdb-gremlin copied to clipboard
mid traversals not using available index
I am using OrientDB 3 RC1 (Gremlin+TInkerpop 3 community edition)
In the Tinkerpop 3 ref docs it says: "Whether a mid-traversal V() uses an index or not, depends on a) whether suitable index exists and b) if the particular graph system provider implemented this functionality."
It seems OrientDB gremlin not implemented yet this functionality so for the following kind of query even if I have a UNIQUE_HASH_INDEX index on 'adresa' field from Adresa class..it will not be hit:
g.V().hasLabel("Firma").as("a"). V().hasLabel("Adresa").as("b"). where("a", eq("b")).by("adresa"). addE("Location").from("a").to("b")
Should I expect for this to work when OrientDB will be released for production use? Or maybe should I try rewrite the query in some other way? ....or just use the OrientDB SQL?
Thanks, Mihai