java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategy<TraversalStrategy.OptimizationStrategy>
org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.LazyBarrierStrategy
All Implemented Interfaces:
Serializable, Comparable<Class<? extends TraversalStrategy>>, TraversalStrategy<TraversalStrategy.OptimizationStrategy>, TraversalStrategy.OptimizationStrategy

LazyBarrierStrategy is an OLTP-only strategy that automatically inserts a NoOpBarrierStep after every FlatMapStep if neither path-tracking nor partial path-tracking is required, and the next step is not the traversal's last step or a Barrier. NoOpBarrierSteps allow traversers to be bulked, thus this strategy is meant to reduce memory requirements and improve the overall query performance.
Author:
Marko A. Rodriguez (http://markorodriguez.com)
See Also:
Example:
 __.out().bothE().count()      // is replaced by __.out().barrier(2500).bothE().count()
 __.both().both().valueMap()   // is replaced by __.both().barrier(2500).both().barrier(2500).valueMap()