Hi there,

I need to find an edge between 2 vertices. In my schema there can be only 
one edge between 2 vertices.
I tried this 2 options

1. Using query

select from RELATED where in = :target and out = :src

RELATED is a class of the edge I'm looking for. 

2. Using API

vSrc.getEdges(vTarget, Direction.BOTH, RelationType.RELATED.name())

Both are extremely slow. My guess is because query goes over all RELATED 
edges, checking conditions for each of them.
I feel like I have to use TRAVERSE, but I can't come up with a query to do 
this.
Please help!

Thanks!
-Andrey

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to