You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2019/05/13 15:14:55 UTC

[tinkerpop] branch master updated: TINKERPOP-2198 Update store() documentation wrt EarlyLimitStrategy CTR

This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/master by this push:
     new 783eb07  TINKERPOP-2198 Update store() documentation wrt EarlyLimitStrategy CTR
     new 7c73810  Merge branch 'tp33'
783eb07 is described below

commit 783eb0758fe5ae3fc9804438cb641bab9b4efc84
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Mon May 13 11:14:01 2019 -0400

    TINKERPOP-2198 Update store() documentation wrt EarlyLimitStrategy CTR
---
 docs/src/reference/the-traversal.asciidoc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/docs/src/reference/the-traversal.asciidoc b/docs/src/reference/the-traversal.asciidoc
index 88a20b5..d6b281a 100644
--- a/docs/src/reference/the-traversal.asciidoc
+++ b/docs/src/reference/the-traversal.asciidoc
@@ -2572,11 +2572,13 @@ stores objects in its side-effect collection as they pass through.
 
 [gremlin-groovy,modern]
 ----
-g.V().aggregate('x').limit(1).cap('x')
+g.V().aggregate('x').limit(1).cap('x')                               
 g.V().store('x').limit(1).cap('x')
+g.withoutStrategies(EarlyLimitStrategy).V().store('x').limit(1).cap('x')
 ----
 
-It is interesting to note that there are two results in the `store()` side-effect even though the interval
+It is important to note that `EarlyLimitStrategy` introduced in 3.3.5 alters the behavior of `store()`. Without that
+strategy (which is installed by default), there are two results in the `store()` side-effect even though the interval
 selection is for 1 object. Realize that when the second object is on its way to the `range()` filter (i.e. `[0..1]`),
 it passes through `store()` and thus, stored before filtered.