Barak Itkin
Barak Itkin

Reputation: 4877

Tinkerpop Gremlin transaction processor with bytecode?

I'm using the Gremlin language to query 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.

The problem - the traversal processor accepts queries in gremlin bytecode, whereas the session op processor accepts queries as gremlin strings. Is there any way in which I can make queries which are both transactional (as I need a sequence of multiples reads and writes), and are sent as ByteCode?

I'm mainly asking since I discovered that queries running as ByteCode via the traversal processor, have significantly lower overhead time than the same queries being ran as strings with other processors (about 30ms difference).

Thanks in advance!

Upvotes: 1

Views: 479

Answers (1)

CrizR
CrizR

Reputation: 688

In TinkerPop 3.5.0 it seems they did add bytecode transaction support: https://tinkerpop.apache.org/docs/current/reference/#transactions

Upvotes: 1

Related Questions