I think this one would be better
select from (traverse out('translatesTo') from (select from Label where
name = 'Hello')) where out('is').name contains 'Ar-sy'
Traversing only by out('translatesTo') is faster than traversing and than
filtering. Moreover if you have another type of edges between labels they
also will be traversed.
Best regards,
Artem Orobets
* Orient Technologiesthe Company behind OrientDB*
2014/1/14 SHak <[email protected]>
> So, I made some progress. The following query returns what I need. What
> do you think? can it be better?
>
> SELECT FROM (TRAVERSE * FROM (SELECT FROM label WHERE name like '%Hello%')
> while @class = 'Label') where out_is.name ='Ar-sy';
>
>
> --
>
> ---
> 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.
>
--
---
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.