orientdb-gremlin icon indicating copy to clipboard operation
orientdb-gremlin copied to clipboard

mid traversals not using available index

Open misu200 opened this issue 6 years ago • 5 comments

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

misu200 avatar Feb 03 '18 20:02 misu200