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 2020/04/23 17:41:46 UTC

[tinkerpop] branch master updated (3b0ad4c -> e95518a)

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

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


    from 3b0ad4c  Merge branch '3.4-dev'
     new d62edb0  TINKERPOP-2354 Improve documentation around "g" creation CTR
     new 7a8c7c0  Merge branch '3.3-dev' into 3.4-dev
     new 2bda06c  TINKERPOP-2354 Add note about creation of "g" to documentation CTR
     new e95518a  Merge branch '3.4-dev'

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docs/src/reference/intro.asciidoc                 | 4 +++-
 docs/src/tutorials/getting-started/index.asciidoc | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)


[tinkerpop] 03/04: TINKERPOP-2354 Add note about creation of "g" to documentation CTR

Posted by sp...@apache.org.
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

commit 2bda06c7d54bd23971765d53c9f698b124a23349
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Thu Apr 23 13:40:50 2020 -0400

    TINKERPOP-2354 Add note about creation of "g" to documentation CTR
---
 docs/src/reference/intro.asciidoc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/docs/src/reference/intro.asciidoc b/docs/src/reference/intro.asciidoc
index 81f8e2c..ebc0e9b 100644
--- a/docs/src/reference/intro.asciidoc
+++ b/docs/src/reference/intro.asciidoc
@@ -412,6 +412,8 @@ g = traversal().withRemote(
 As shown in the embedded approach in the previous section, once "g" is defined, writing Gremlin is structurally and
 conceptually the same irrespective of programming language.
 
+TIP: The variable `g`, the `TraversalSource`, only needs to be instantiated once and should then be re-used.
+
 [[connecting-gremlin-server-limitations]]
 ==== Limitations
 


[tinkerpop] 04/04: Merge branch '3.4-dev'

Posted by sp...@apache.org.
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

commit e95518a737d57d354c9a5875c9575023196e0b6b
Merge: 3b0ad4c 2bda06c
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Thu Apr 23 13:41:31 2020 -0400

    Merge branch '3.4-dev'

 docs/src/reference/intro.asciidoc                 | 4 +++-
 docs/src/tutorials/getting-started/index.asciidoc | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)



[tinkerpop] 02/04: Merge branch '3.3-dev' into 3.4-dev

Posted by sp...@apache.org.
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

commit 7a8c7c0fcb88cc2788013c120b31c8a67e6b7897
Merge: dcafd0c d62edb0
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Thu Apr 23 13:39:19 2020 -0400

    Merge branch '3.3-dev' into 3.4-dev

 docs/src/reference/intro.asciidoc                 | 2 +-
 docs/src/tutorials/getting-started/index.asciidoc | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)



[tinkerpop] 01/04: TINKERPOP-2354 Improve documentation around "g" creation CTR

Posted by sp...@apache.org.
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

commit d62edb05e37117034a1d2e1841433d4d02ab0537
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Thu Apr 23 13:38:43 2020 -0400

    TINKERPOP-2354 Improve documentation around "g" creation CTR
---
 docs/src/reference/intro.asciidoc                 | 2 +-
 docs/src/tutorials/getting-started/index.asciidoc | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/docs/src/reference/intro.asciidoc b/docs/src/reference/intro.asciidoc
index b2474c1..1d0c19c 100644
--- a/docs/src/reference/intro.asciidoc
+++ b/docs/src/reference/intro.asciidoc
@@ -163,7 +163,7 @@ gremlin> g.V().has('name','marko').out('knows').values('name') // <3>
 ----
 
 <1> Open the toy graph and reference it by the variable `graph`.
-<2> Create a graph traversal source from the graph using the standard, OLTP traversal engine.
+<2> Create a graph traversal source from the graph using the standard, OLTP traversal engine. This object should be created once and then re-used.
 <3> Spawn a traversal off the traversal source that determines the names of the people that the marko-vertex knows.
 
 .The Name of The People That Marko Knows
diff --git a/docs/src/tutorials/getting-started/index.asciidoc b/docs/src/tutorials/getting-started/index.asciidoc
index 16377d6..66697da 100644
--- a/docs/src/tutorials/getting-started/index.asciidoc
+++ b/docs/src/tutorials/getting-started/index.asciidoc
@@ -145,6 +145,8 @@ g.V(1).out('knows').has('age', gt(30)).values('name')    <7>
 (similar to `inE().outV()` and `in()` for incoming edges).
 <7> Get the names of the people vertex "1" knows who are over the age of 30.
 
+TIP: The variable `g`, the `TraversalSource`, only needs to be instantiated once and should then be re-used.
+
 IMPORTANT: A `Traversal` is essentially an `Iterator` so if you have code like `x = g.V()`, the `x` does not contain
 the results of the `g.V()` query.  Rather, that statement assigns an `Iterator` value to `x`. To get your results,
 you would then need to iterate through `x`. This understanding is *important* because in the context of the console