Thank you, Jan.
-m
On Tuesday, October 25, 2016 at 2:22:39 AM UTC-4, Jan wrote:
>
> Hi Marco,
>
> a traversal instruction can only have a single start vertex.
> So yes, specifying the start vertices in an array and iterating over them
> with a FOR loop as you did is a good way to do it.
>
> If the array of start vertices is very big, an alternative is to split the
> array of start vertices on the client side into multiple chunks and issue a
> separate query for each chunk.
> That way the traversals can run in parallel on the different chunks,
> however, the results may need to be aggregated somehow on the client side.
> This shouldn't be a problem if the results for the different start
> vertices are independent from the viewpoint of the client application. But
> if you need to analyze the total result of all traversals then using the
> one big array will be the simplest solution.
>
> Best regards
> J
>
>
> Am Montag, 24. Oktober 2016 17:59:21 UTC+2 schrieb Marco Yuen:
>>
>> Hi all,
>>
>> At work we have a use case where traversal starting from multiple
>> vertices is required. What is the best way to approach this kind of query?
>> All I can think of is to use FOR to loop through each starting vertex and
>> perform a traversal from that vertex. Something like:
>>
>> FOR starting IN [....]
>> FOR v IN OUTBOUND starting
>> GRAPH foo
>> { ... }
>>
>> Is there any better way to do it?
>> Please note the starting set of vertices can be quite big in our use case.
>>
>> Thanks,
>> Marco
>>
>
--
You received this message because you are subscribed to the Google Groups
"ArangoDB" 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.