我正在使用这个插件,以便我可以使用 tinkerpop 3.x 与 orient DB 交互。
我想知道如何创建不同的交易?
使用 TitanDB,它非常简单:
t1 = graph.newTransaction();
t2 = graph.newTransaction();
t3 = graph.newTransaction();
我用 OrientDB-Gremlin 尝试了以下操作:
t1 = graph.tx().createThreadedTx();
t2 = graph.tx().createThreadedTx();
并收到以下错误:
java.lang.UnsupportedOperationException: Graph does not support threaded transactions
这是否意味着获得不同事务的唯一方法是在不同线程的范围内打开它们?