g.V().out().out()
g.V().out()
I'm trying to see if and how parallelization of a given gremlin query happens and how I can control the concurrency.For example, given a query like
g.V().out().out()
how does tinkerpop decides on how many parallel traversal objects are created?
I would like to say only one is created and given the lazy evaluation with Iterator, every time hasNext (or next) is called, the traverser makes the next step.
gremlin> g.V().both().both().profile()==>Traversal MetricsStep Count Traversers Time (ms) % Dur=============================================================================================================TinkerGraphStep(vertex,[]) 6 6 0.053 23.37VertexStep(BOTH,vertex) 12 12 0.052 23.01VertexStep(BOTH,vertex) 30 30 0.121 53.62>TOTAL - - 0.227 -gremlin> g.V().both().barrier().both().profile()==>Traversal MetricsStep Count Traversers Time (ms) % Dur=============================================================================================================TinkerGraphStep(vertex,[]) 6 6 0.049 20.93VertexStep(BOTH,vertex) 12 12 0.071 30.01NoOpBarrierStep 12 6 0.048 20.32VertexStep(BOTH,vertex) 30 12 0.068 28.75>TOTAL - - 0.238 -gremlin>
Regardless of what I said above is correct or false, is there a way to get tinkerpop to continue to evaluate the query while I'm working on the first result returned from next? If not, is it advisable (or completel wrong) to perform
g.V().out()first, and then create multiple threads to execute the second out()?
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/c6237470-8f01-4596-8be2-2f299f072148%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/7114544c-502c-4977-bd19-91a371f5c77b%40googlegroups.com.
>>> <mailto:gremlin-users+unsub...@googlegroups.com>.
>>> To view this discussion on the web
>>> visit https://groups.google.com/d/msgid/gremlin-users/c6237470-8f01-4596-8be2-2f299f072148%40googlegroups.com
>>> <https://groups.google.com/d/msgid/gremlin-users/c6237470-8f01-4596-8be2-2f299f072148%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Gremlin-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to gremlin-user...@googlegroups.com
>> <mailto:gremlin-users+unsub...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/4fd7115d-9167-41a5-86b8-dc4719c4d631%40googlegroups.com.
>>> To view this discussion on the web
>>> visit https://groups.google.com/d/msgid/gremlin-users/c6237470-8f01-4596-8be2-2f299f072148%40googlegroups.com
>>> <https://groups.google.com/d/msgid/gremlin-users/c6237470-8f01-4596-8be2-2f299f072148%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Gremlin-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to gremlin-user...@googlegroups.com
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/gremlin-users/12725B52-0C3E-4ED4-959F-F85918654E8F%40gmail.com
>> <https://groups.google.com/d/msgid/gremlin-users/12725B52-0C3E-4ED4-959F-F85918654E8F%40gmail.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/3c7a5ec6-74d5-771e-43ee-d055c35e55ca%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>>> <mailto:gremlin-users+unsub...@googlegroups.com>.
>>> To view this discussion on the web
>>> visit https://groups.google.com/d/msgid/gremlin-users/c6237470-8f01-4596-8be2-2f299f072148%40googlegroups.com
>>> <https://groups.google.com/d/msgid/gremlin-users/c6237470-8f01-4596-8be2-2f299f072148%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Gremlin-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to gremlin-user...@googlegroups.com
>> <mailto:gremlin-users+unsub...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/f5f4489a-978c-4461-b12b-960d7f73180f%40googlegroups.com.