Stephen Mallette created TINKERPOP-2343:
-------------------------------------------

             Summary: Allow for some form of max unroll length for 
RepeatUnrollStrategy
                 Key: TINKERPOP-2343
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2343
             Project: TinkerPop
          Issue Type: Improvement
          Components: process
    Affects Versions: 3.3.10
            Reporter: Stephen Mallette


{{RepeatUnrollStrategy}} introduces a bit of an optimization where there is a 
constant numbers of loops with {{times()}} and there aren't intermittent 
elements emitted:

{code}
gremlin> g.V(1).repeat(both()).times(3).explain()
==>Traversal Explanation
==========================================================================================================================================================================================================
Original Traversal                 [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(3)),emit(false))]

ConnectiveStrategy           [D]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(3)),emit(false))]
MatchPredicateStrategy       [O]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(3)),emit(false))]
FilterRankingStrategy        [O]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(3)),emit(false))]
EarlyLimitStrategy           [O]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(3)),emit(false))]
InlineFilterStrategy         [O]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(3)),emit(false))]
IncidentToAdjacentStrategy   [O]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(3)),emit(false))]
AdjacentToIncidentStrategy   [O]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(3)),emit(false))]
RepeatUnrollStrategy         [O]   [GraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500)]
CountStrategy                [O]   [GraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500)]
PathRetractionStrategy       [O]   [GraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500)]
LazyBarrierStrategy          [O]   [GraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500)]
TinkerGraphCountStrategy     [P]   [GraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500)]
TinkerGraphStepStrategy      [P]   [TinkerGraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500)]
ProfileStrategy              [F]   [TinkerGraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500)]
StandardVerificationStrategy [V]   [TinkerGraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500)]

Final Traversal                    [TinkerGraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500)]
{code}

For {{times(3)}} the resultant query is typically sensible put suppose 
{{times(30)}} with a bigger child traversal and then:

{code}
gremlin> g.V(1).repeat(both()).times(30).explain()
==>Traversal Explanation
=============================================================================================================================================================================================================
Original Traversal                 [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(30)),emit(false))]

ConnectiveStrategy           [D]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(30)),emit(false))]
MatchPredicateStrategy       [O]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(30)),emit(false))]
FilterRankingStrategy        [O]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(30)),emit(false))]
EarlyLimitStrategy           [O]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(30)),emit(false))]
InlineFilterStrategy         [O]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(30)),emit(false))]
IncidentToAdjacentStrategy   [O]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(30)),emit(false))]
AdjacentToIncidentStrategy   [O]   [GraphStep(vertex,[1]), 
RepeatStep([VertexStep(BOTH,vertex), 
RepeatEndStep],until(loops(30)),emit(false))]
RepeatUnrollStrategy         [O]   [GraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500),
                                       VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex
                                      ), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500
                                      ), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vert
                                      ex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(25
                                      00), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,ve
                                      rtex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,
                                      vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500)]
CountStrategy                [O]   [GraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500),
                                       VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex
                                      ), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500
                                      ), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vert
                                      ex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(25
                                      00), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,ve
                                      rtex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,
                                      vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500)]
PathRetractionStrategy       [O]   [GraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500),
                                       VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex
                                      ), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500
                                      ), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vert
                                      ex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(25
                                      00), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,ve
                                      rtex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,
                                      vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500)]
LazyBarrierStrategy          [O]   [GraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500),
                                       VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex
                                      ), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500
                                      ), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vert
                                      ex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(25
                                      00), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,ve
                                      rtex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,
                                      vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500)]
TinkerGraphCountStrategy     [P]   [GraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500),
                                       VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex
                                      ), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500
                                      ), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vert
                                      ex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(25
                                      00), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,ve
                                      rtex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,
                                      vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500)]
TinkerGraphStepStrategy      [P]   [TinkerGraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,
                                      vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierSte
                                      p(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOT
                                      H,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierS
                                      tep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(B
                                      OTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrie
                                      rStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep
                                      (BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500)]
ProfileStrategy              [F]   [TinkerGraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,
                                      vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierSte
                                      p(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOT
                                      H,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierS
                                      tep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(B
                                      OTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrie
                                      rStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep
                                      (BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500)]
StandardVerificationStrategy [V]   [TinkerGraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,
                                      vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierSte
                                      p(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOT
                                      H,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierS
                                      tep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(B
                                      OTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrie
                                      rStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep
                                      (BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500)]

Final Traversal                    [TinkerGraphStep(vertex,[1]), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(
                                      2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,
                                      vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierSte
                                      p(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOT
                                      H,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierS
                                      tep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(B
                                      OTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrie
                                      rStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500), VertexStep(BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep
                                      (BOTH,vertex), NoOpBarrierStep(2500), 
VertexStep(BOTH,vertex), NoOpBarrierStep(2500), VertexStep(BOTH,vertex), 
NoOpBarrierStep(2500)]
{code}

the traversal expands out to something very large and can create some problems 
at execution time. 

https://tinkerpop.apache.org/docs/current/recipes/#long-traversals

Not sure how such cases should be handled exactly, but it does present a 
potential problem.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to