I don't know if this will help, but I usually model my edges so they they
reflect a specific type (or sub-type).
If you're needing to query a result for one or more specific RIDs, I'd
create an index.
-Colin
Orient Technologies
The Company behind OrientDB
On Tuesday, March 3, 2015 at 9:53:34 AM UTC-6, Red-0ne wrote:
>
> I have a database where vertices *Vi* are linked to vertex *A* or *B* or
> *both* via edge *'hasAspect*'.
> I want to get all the vertices that are linked to both *A* and *B*. The
> only way I found is (having A and B being @rids):
>
> SELECT FROM V WHERE out('hasAspect') CONTAINS (@rid = A) AND out(
> 'hasAspect') CONTAINS (@rid = B)
>
> Is there a more elegant way to achieve the same result? Knowing that it
> could easily become ugly if I have to filter for more than only A and B?
> (C, D, E, F...)
>
> Thank you
>
--
---
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/d/optout.