One more question from me.
I've just implemented query to the data base. Right list of vertices was
retreived.
Something like that (regarding my example):
Jeff, Olivia, Peter, Kate, Ethan, NY Islanders,
Donald,
Linda, George,
Shauun, Michael, Mary, NY Rangers
but when I tried to get parent of Jeff (it is Olivia), call to the DB was
done.
In one of the my messages I mentioned that I wouldn't like to make
additional calls to the DB. Ive already read topic about Fetching plans,
but cant find how to apply it in my query....and moreover Do I really need
traversind if I use fetching.
понедельник, 14 июля 2014 г., 18:57:33 UTC+3 пользователь Artem Orobets
написал:
>
> Hi Vladimir,
>
> Prefer using of graph functions instead of underlying fields.
>
> So it is better to rewrite query as following
>
> select unionAll($a, $b) let $a = (TRAVERSE out('root for'), out('child
> of') FROM [Linda_ID, Shaun_ID, Jeff_ID]), $b = (TRAVERSE in('child of')
> FROM [Linda_ID, Shaun_ID, Jeff_ID])
>
>
> Best regards,
> Artem Orobets
>
> *Orient Technologies the Company behind OrientDB*
>
>
> 2014-07-14 18:39 GMT+03:00 Vladimir Ziankevich <[email protected]
> <javascript:>>:
>
>> Of course my picture is just small part. Just demonstrative example.
>>
>> понедельник, 14 июля 2014 г., 17:43:53 UTC+3 пользователь Andrey Kovalev
>> написал:
>>
>>> According to your picture it should work (theoretically).
>>> 'New York islanders' vertex has only incoming edges of type 'root_for'.
>>> Then we need to traverse only by outcoming edges of type 'child_of' and
>>> finally arrive to 'New York raingers' by incoming connection of type
>>> 'root_for'. And we start traversing from 'New York islanders' vertex. If
>>> your picture is only a part of a bigger graph then probably query is not
>>> valid.
>>>
>>> On Monday, 14 July 2014 15:36:39 UTC+1, Vladimir Ziankevich wrote:
>>>>
>>>> But If I travers by V.in_root_for, V.out_root_for does not it mean
>>>> that I get all the vertices of the graph rather than subset? Because of
>>>> this query has no limitations all the vertices will be traversed.
>>>>
>>>> --
>>
>> ---
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
---
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.