[ 
https://issues.apache.org/jira/browse/TINKERPOP3-702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14696003#comment-14696003
 ] 

Matt Frantz commented on TINKERPOP3-702:
----------------------------------------

What I was trying to say is that if you want to handle the case of a 
{{VertexStep}} used within a loop or other enclosing step, you could write a 
strategy that performs the necessary transformation so that your optimization 
is effective.  Loop unrolling would be a technique that would apply to the 
{{repeat...times}} case.  This sort of algebra on the AST is the basis for 
implementation of optimizations in many problem domains, e.g. compilers.  Sorry 
if this is not helpful, as I may not be understanding the issue you describe.

> Buffer input to inner traversals
> --------------------------------
>
>                 Key: TINKERPOP3-702
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-702
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>            Reporter: Ran Magen
>            Assignee: Marko A. Rodriguez
>             Fix For: 3.0.0-incubating
>
>
> In elastic-gremlin we implement an optimized VertexStep. Part of its job is 
> to batch/buffer/bulk different traversers and query them together in-order to 
> minizmize the number of queries. 
> You can see the implementation here: 
> https://github.com/rmagen/elastic-gremlin/blob/master/src/main/java/org/elasticgremlin/process/optimize/ElasticVertexStep.java#L36
> This works great in regular traversals, the "starts" iterator returns as many 
> traversers as the previous step gave out.
> But when the step is in an innerTraversal (e.g. 
> g.V().repeat(__.out()).times(8)), the "starts" iterator only returns one 
> traverser, and will return the next traverser only in the next call to 
> processNextStart. Thus, there is no way to run a bulk query.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to