Hi,
try this query and let me know if it's faster
select ref_id from sentence let $a = in('hasCui') where $a.ref_id contains
'C0024530' and $a.ref_id contains 'C0013090'
If the relationship between the classes is the following CUI--->SENTENCE
<--RELATION
in your first query you should have "select expand(out('hasCui')) from CUI"
and not "select expand(in('hasCui')) from CUI"
Alessandro
--
---
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.