why this can not insert into janusGraph

365 views
Skip to first unread message

李平

unread,
Jul 19, 2017, 6:40:04 AM7/19/17
to Gremlin-users

but ,when i can use GraphTraversalSource  to query Vertex  but why i cant insert into janusGraph

Stephen Mallette

unread,
Jul 19, 2017, 6:41:12 AM7/19/17
to Gremlin-users

On Wed, Jul 19, 2017 at 6:27 AM, 李平 <lipin...@gmail.com> wrote:

but ,when i can use GraphTraversalSource  to query Vertex  but why i cant insert into janusGraph

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/89713cc0-67fc-44f1-ad85-e51c342b43f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

李平

unread,
Jul 19, 2017, 8:07:12 AM7/19/17
to Gremlin-users

do you know this throwable,how  can i  fix it  ?

在 2017年7月19日星期三 UTC+8下午6:41:12,Stephen Mallette写道:
On Wed, Jul 19, 2017 at 6:27 AM, 李平 <lipin...@gmail.com> wrote:

but ,when i can use GraphTraversalSource  to query Vertex  but why i cant insert into janusGraph

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.

李平

unread,
Jul 19, 2017, 8:07:12 AM7/19/17
to Gremlin-users

is this way ,to iterate traversal.  it cant insert into graph


在 2017年7月19日星期三 UTC+8下午6:41:12,Stephen Mallette写道:
On Wed, Jul 19, 2017 at 6:27 AM, 李平 <lipin...@gmail.com> wrote:

but ,when i can use GraphTraversalSource  to query Vertex  but why i cant insert into janusGraph

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.

Stephen Mallette

unread,
Jul 19, 2017, 8:13:51 AM7/19/17
to Gremlin-users
yes use of .iterate() should do the trick, but your traversal looks like it has bad syntax. it should just be:

g.addV('mmdUse').property('name','gaoyue').property('phone','112').iterate()

you don't need to name the arguments. 






On Wed, Jul 19, 2017 at 7:48 AM, 李平 <lipin...@gmail.com> wrote:

is this way ,to iterate traversal.  it cant insert into graph

在 2017年7月19日星期三 UTC+8下午6:41:12,Stephen Mallette写道:

On Wed, Jul 19, 2017 at 6:27 AM, 李平 <lipin...@gmail.com> wrote:

but ,when i can use GraphTraversalSource  to query Vertex  but why i cant insert into janusGraph

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/89713cc0-67fc-44f1-ad85-e51c342b43f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/391034b0-6b14-4364-89c9-ef4af8ea3d06%40googlegroups.com.

李平

unread,
Jul 20, 2017, 6:11:57 AM7/20/17
to Gremlin-users
public static void main(String[] args) throws Exception {

BaseConfiguration baseConfiguration = new BaseConfiguration();
baseConfiguration.setProperty("storage.backend", "hbase");
baseConfiguration.setProperty("storage.hostname", "192.168.1.108");
baseConfiguration.setProperty("gremlin.graph", "org.janusgraph.core.JanusGraphFactory");
JanusGraph janusGraph = JanusGraphFactory.open(baseConfiguration);
GraphTraversalSource g = janusGraph.traversal();
g.tx().open();
g.addV("mmdUser").property("name","zhangwei").iterate();
g.tx().commit();
}

i must use transaction to insert , it will insert into the graph  but how i can set the  transaction autocommit

在 2017年7月19日星期三 UTC+8下午8:13:51,Stephen Mallette写道:
yes use of .iterate() should do the trick, but your traversal looks like it has bad syntax. it should just be:

g.addV('mmdUse').property('name','gaoyue').property('phone','112').iterate()

you don't need to name the arguments. 





On Wed, Jul 19, 2017 at 7:48 AM, 李平 <lipin...@gmail.com> wrote:

is this way ,to iterate traversal.  it cant insert into graph

在 2017年7月19日星期三 UTC+8下午6:41:12,Stephen Mallette写道:

On Wed, Jul 19, 2017 at 6:27 AM, 李平 <lipin...@gmail.com> wrote:

but ,when i can use GraphTraversalSource  to query Vertex  but why i cant insert into janusGraph

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/89713cc0-67fc-44f1-ad85-e51c342b43f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.

李平

unread,
Jul 20, 2017, 6:11:58 AM7/20/17
to Gremlin-users
public class GraphTest {


public static void main(String[] args) throws Exception {

BaseConfiguration baseConfiguration = new BaseConfiguration();
baseConfiguration.setProperty("storage.backend","hbase");
baseConfiguration.setProperty("storage.hostname","192.168.1.108");
baseConfiguration.setProperty("gremlin.graph","org.janusgraph.core.JanusGraphFactory");
JanusGraph janusGraph = JanusGraphFactory.open(baseConfiguration);
GraphTraversalSource g = janusGraph.traversal();
        g.addV("mmdUse").property("name","gaoyue").property("phone","112").iterate();

}

}

it dose not work ,i use germlin console query vertex,but it dose not exsit, the log is 

09:53:42.522 [main] INFO org.janusgraph.graphdb.database.IndexSerializer - Hashing index keys
09:53:42.553 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [system-registration.c0a8017916228-DESKTOP-GUCT8TL1.startup-time, system-registration.c0a8017916228-DESKTOP-GUCT8TL1.startup-timf)
09:53:42.581 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseStoreManager - Substituted default CF name "system_properties" with short form "s" to reduce HBase KeyValue size
09:53:42.671 [main] INFO org.janusgraph.diskstorage.log.kcvs.KCVSLog - Loaded unidentified ReadMarker start time 2017-07-20T01:53:42.671Z into org.janusgraph.diskstorage.log.kcvs.KCVSLog$MessagePuller@69f1a286
09:53:42.687 [main] DEBUG org.janusgraph.diskstorage.log.kcvs.KCVSLog - Creating log read executor: initialDelay=100000000 delay=5000000000 unit=NANOSECONDS
09:53:42.687 [main] DEBUG org.janusgraph.graphdb.database.StandardJanusGraph - Installed shutdown hook Thread[Thread-8,5,main]
java.lang.Throwable: Hook creation trace
	at org.janusgraph.graphdb.database.StandardJanusGraph.<init>(StandardJanusGraph.java:167)
	at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:107)
	at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:87)
	at com.mimidai.chapter02.GraphTest.main(GraphTest.java:19)
09:53:42.765 [main] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
09:53:42.765 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
09:53:42.765 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000
09:53:42.780 [main] DEBUG org.janusgraph.graphdb.tinkerpop.JanusGraphBlueprintsGraph - Created new thread-bound transaction standardjanusgraphtx[0x31dadd46]
09:53:42.780 [main] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
09:53:42.780 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
09:53:42.780 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000
09:53:42.812 [pool-4-thread-1] DEBUG org.janusgraph.diskstorage.log.kcvs.KCVSLog - MessagePuller configured with ReadMarker timestamp slightly ahead of read lag time; waiting for the clock to catch up
09:53:42.859 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF), ColumnPaginationFilter (2000, 0)]
09:53:42.859 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Starting id block renewal thread upon 0
09:53:42.859 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), ColumnPaginationFilter (5, 0)]
09:53:42.874 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseStoreManager - Substituted default CF name "janusgraph_ids" with short form "i" to reduce HBase KeyValue size
09:53:43.212 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\xFF\xFF\xFF\xFF\xFF\xFF\xFFi\x00\x00\x00\x00\x00\x00\x00\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFFi\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF)
09:53:43.212 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.idmanagement.ConsistentKeyIDAuthority - Acquired ID block [[101,151)/0:4] on partition(0)-namespace(4) (my rid is c0a8017916228-DESKTOP-GUCT8TL1)
09:53:43.212 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Retrieved ID block from authority on partition(0)-namespace(4), exec time 344.1 ms, exec+q time 344.6 ms
09:53:43.212 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - ID partition(0)-namespace(4) acquired block: [[101,151)/0:4]
09:53:43.212 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Starting id block renewal thread upon 0
09:53:43.212 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), ColumnPaginationFilter (5, 0)]
09:53:43.212 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseStoreManager - Substituted default CF name "janusgraph_ids" with short form "i" to reduce HBase KeyValue size
09:53:43.256 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF), ColumnPaginationFilter (2000, 0)]
09:53:43.256 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Starting id block renewal thread upon 0
09:53:43.568 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\xFF\xFF\xFF\xFF\xFF\xFF\xFF7\x00\x00\x00\x00\x00\x00\x00\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFF7\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF)
09:53:43.571 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.idmanagement.ConsistentKeyIDAuthority - Acquired ID block [[151,201)/0:4] on partition(0)-namespace(4) (my rid is c0a8017916228-DESKTOP-GUCT8TL1)
09:53:43.571 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Retrieved ID block from authority on partition(0)-namespace(4), exec time 353.5 ms, exec+q time 353.6 ms
09:53:43.571 [JanusGraphID(0)(3)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), ColumnPaginationFilter (5, 0)]
09:53:43.574 [JanusGraphID(0)(3)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseStoreManager - Substituted default CF name "janusgraph_ids" with short form "i" to reduce HBase KeyValue size
09:53:43.920 [JanusGraphID(0)(3)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\xFF\xFF\xFF\xFF\xFF\xFD\x8E\xFF\x00\x00\x00\x00\x00\x00\x00\x00, \xFF\xFF\xFF\xFF\xFF\xFD\x8E\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF)
09:53:43.920 [JanusGraphID(0)(3)[0]] DEBUG org.janusgraph.diskstorage.idmanagement.ConsistentKeyIDAuthority - Acquired ID block [[80001,160001)/0:4] on partition(0)-namespace(3) (my rid is c0a8017916228-DESKTOP-GUCT8TL1)
09:53:43.920 [JanusGraphID(0)(3)[0]] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Retrieved ID block from authority on partition(0)-namespace(3), exec time 654.5 ms, exec+q time 654.8 ms
09:53:43.920 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - ID partition(0)-namespace(3) acquired block: [[80001,160001)/0:4]
09:53:44.123 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Starting id block renewal thread upon 0
09:53:44.139 [JanusGraphID(13)(0)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), ColumnPaginationFilter (5, 0)]
09:53:44.139 [JanusGraphID(13)(0)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseStoreManager - Substituted default CF name "janusgraph_ids" with short form "i" to reduce HBase KeyValue size
09:53:44.491 [JanusGraphID(13)(0)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\xFF\xFF\xFF\xFF\xFF\xFF\xB1\xDF\x00\x00\x00\x00\x00\x00\x00\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xB1\xDF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF)
09:53:44.491 [JanusGraphID(13)(0)[0]] DEBUG org.janusgraph.diskstorage.idmanagement.ConsistentKeyIDAuthority - Acquired ID block [[10001,20001)/0:4] on partition(13)-namespace(0) (my rid is c0a8017916228-DESKTOP-GUCT8TL1)
09:53:44.491 [JanusGraphID(13)(0)[0]] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Retrieved ID block from authority on partition(13)-namespace(0), exec time 354.0 ms, exec+q time 354.7 ms
09:53:44.491 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - ID partition(13)-namespace(0) acquired block: [[10001,20001)/0:4]
09:53:44.491 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Starting id block renewal thread upon 0
09:53:44.491 [JanusGraphID(13)(3)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), ColumnPaginationFilter (5, 0)]
09:53:44.491 [JanusGraphID(13)(3)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseStoreManager - Substituted default CF name "janusgraph_ids" with short form "i" to reduce HBase KeyValue size
09:53:44.841 [JanusGraphID(13)(3)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\xFF\xFF\xFF\xFF\xFF\xFD\x8E\xFF\x00\x00\x00\x00\x00\x00\x00\x00, \xFF\xFF\xFF\xFF\xFF\xFD\x8E\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF)
09:53:44.841 [JanusGraphID(13)(3)[0]] DEBUG org.janusgraph.diskstorage.idmanagement.ConsistentKeyIDAuthority - Acquired ID block [[80001,160001)/0:4] on partition(13)-namespace(3) (my rid is c0a8017916228-DESKTOP-GUCT8TL1)
09:53:44.841 [JanusGraphID(13)(3)[0]] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Retrieved ID block from authority on partition(13)-namespace(3), exec time 348.8 ms, exec+q time 349.2 ms
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - ID partition(13)-namespace(3) acquired block: [[80001,160001)/0:4]
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000
09:53:44.841 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF), ColumnPaginationFilter (2000, 0)]
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000
09:53:44.841 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\x10\xC2, \x10\xC3)
09:53:44.856 [main] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
09:53:44.856 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
09:53:44.856 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000
09:53:44.856 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\x10\xC0, \x10\xC1)
09:53:44.872 [main] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
09:53:44.872 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
09:53:44.872 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000



but  this way can insert into graph


public static void main(String[] args) throws ExecutionException, InterruptedException {
Cluster.Builder builder = Cluster.build();
builder.addContactPoint("192.168.1.108");
Cluster cluster = builder.create();
Client client = cluster.connect();
ResultSet results = client.submit("g.addV('mmdUser').property('name','zhangwei').property('phone','110')");
CompletableFuture<List<Result>> all = results.all();
List<Result> resultList = all.get();
for (Result result : resultList) {
System.out.println(result.getString());
}
client.close();
cluster.close();
}

在 2017年7月19日星期三 UTC+8下午8:13:51,Stephen Mallette写道:
yes use of .iterate() should do the trick, but your traversal looks like it has bad syntax. it should just be:

g.addV('mmdUse').property('name','gaoyue').property('phone','112').iterate()

you don't need to name the arguments. 





On Wed, Jul 19, 2017 at 7:48 AM, 李平 <lipin...@gmail.com> wrote:

is this way ,to iterate traversal.  it cant insert into graph

在 2017年7月19日星期三 UTC+8下午6:41:12,Stephen Mallette写道:

On Wed, Jul 19, 2017 at 6:27 AM, 李平 <lipin...@gmail.com> wrote:

but ,when i can use GraphTraversalSource  to query Vertex  but why i cant insert into janusGraph

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/89713cc0-67fc-44f1-ad85-e51c342b43f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.

Stephen Mallette

unread,
Jul 20, 2017, 6:15:43 AM7/20/17
to Gremlin-users
there is no need to do g.tx().open(). you only need to g.tx().commit() or g.tx().rollback(). as soon as you do that a new transaction will be opened and ready for use. i don't think that there is a way to auto-commit after a traversal is executed. if you need that kind of functionality perhaps you build something yourself or use Gremlin Server which can manage transactions that way and auto-commit for each request.

To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/fc871c6d-5891-4e1e-81c2-7e167e90ffe4%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages