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 2015/12/29 20:15:20 UTC
[11/40] incubator-tinkerpop git commit: TINKERPOP-1047 Add a note
about use of GraphSON for TinkerGraph's graphFormat setting.
TINKERPOP-1047 Add a note about use of GraphSON for TinkerGraph's graphFormat setting.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/0c74e391
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/0c74e391
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/0c74e391
Branch: refs/heads/TINKERPOP-1035
Commit: 0c74e39163e592092fae27326206e9040cfb8630
Parents: 56a4869
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Dec 17 13:57:37 2015 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Dec 17 13:57:37 2015 -0500
----------------------------------------------------------------------
docs/src/reference/implementations.asciidoc | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/0c74e391/docs/src/reference/implementations.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/implementations.asciidoc b/docs/src/reference/implementations.asciidoc
index 5ddb743..323f481 100644
--- a/docs/src/reference/implementations.asciidoc
+++ b/docs/src/reference/implementations.asciidoc
@@ -651,6 +651,11 @@ If the TinkerGraph is configured for persistence with `gremlin.tinkergraph.graph
format when `Graph.close()` is called. In addition, if these settings are present, TinkerGraph will attempt to
load the graph from the specified location.
+IMPORTANT: If choosing `graphson` as the `gremlin.tinkergraph.graphFormat`, be sure to also establish the various
+`IdManager` settings as well to ensure that identifiers are properly coerced to the appropriate types as GraphSON
+can lose the identifier's type during serialization (i.e. it will assume `Integer` when the default for TinkerGraph
+is `Long`, which could lead to load errors that result in a message like, "Vertex with id already exists").
+
It is important to consider the data being imported to TinkerGraph with respect to `defaultVertexPropertyCardinality`
setting. For example, if a `.gryo` file is known to contain multi-property data, be sure to set the default
cardinality to `list` or else the data will import as `single`. Consider the following: