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 2016/04/04 14:09:35 UTC
incubator-tinkerpop git commit: Added a performance tip to the
reference docs for Gremlin Server CTR
Repository: incubator-tinkerpop
Updated Branches:
refs/heads/master cb229c00d -> 80f2ac5dd
Added a performance tip to the reference docs for Gremlin Server CTR
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/80f2ac5d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/80f2ac5d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/80f2ac5d
Branch: refs/heads/master
Commit: 80f2ac5ddf9bb80ed63c3519c39152a95ca0d1ba
Parents: cb229c0
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Apr 4 08:08:40 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon Apr 4 08:08:40 2016 -0400
----------------------------------------------------------------------
docs/src/reference/gremlin-applications.asciidoc | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/80f2ac5d/docs/src/reference/gremlin-applications.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/gremlin-applications.asciidoc b/docs/src/reference/gremlin-applications.asciidoc
index 8574e96..80cd5e1 100644
--- a/docs/src/reference/gremlin-applications.asciidoc
+++ b/docs/src/reference/gremlin-applications.asciidoc
@@ -1364,6 +1364,12 @@ situations, the iteration and serialization process is the more costly step in t
returns a million or more results could send Gremlin Server into a long streaming cycle. Script evaluation on the
other hand is usually very fast, occurring on the order of milliseconds, but that is entirely dependent on the
contents of the script itself.
+* Graph element serialization for `Vertex` and `Edge` can be expensive, as their data structures are complex given the
+possible existence of multi-properties and meta-properties. When returning data from Gremlin Server only return the
+data that is required. For example, if only two properties of a `Vertex` are needed then simply return the two rather
+than returning the entire `Vertex` object itself. Even with an entire `Vertex`, it is typically much faster to issue
+the query as `g.V(1).valueMap(true)` than `g.V(1)`, as the former returns a `Map` of the same data as a `Vertex`, but
+without all the associated structure which can slow the response.
[[parameterized-scripts]]
Parameterized Scripts