带字节码的 Tinkerpop Gremlin 事务处理器?

Tinkerpop Gremlin transaction processor with bytecode?

我正在使用 Gremlin 语言查询 JanusGraph (and other database systems) and I'm typically sending my queries in the ByteCode format using the traversal op processor. However, for some queries, I need transactions (aka sessions) to batch multiple reads/writes, and for that I should be using the session op processor

问题 - traversal 处理器接受 gremlin 字节码中的查询,而 session op 处理器接受作为 gremlin 字符串的查询。有什么方法可以使查询既是 t运行sactional(因为我需要一系列多次读写),又是作为 ByteCode?

发送的

我主要问的是,因为我发现通过 traversal 处理器查询 运行 作为字节码,比相同的查询 运行 作为字符串与其他查询的开销时间要低得多处理器(大约 30 毫秒的差异)。

提前致谢!

在 TinkerPop 3.5.0 中,他们似乎确实添加了字节码事务支持:https://tinkerpop.apache.org/docs/current/reference/#transactions