Re: Threaded Operations - Quarkus
Boxuan Li
Hi Joe,
Unfortunately the way Marc suggests won’t help with your usecase. Tbh I would have suggested the same answer as Marc before I saw your second post. If one has one JVM thread handling multiple transactions (not familiar with quarkus so not sure
if that is possible), then one has to do what Marc suggested. But in your usecase, it won't be any different from your current usage because JanusGraph will automatically create threaded transaction for each thread (using ThreadLocal) when you use the traversal
object.
The real issue in your use case is that you want ACID support, which really depends on your backend storage. At least in our officially supported Cassandra, HBase, and BigTable adapters, this is not (yet) supported.
Best,
Boxuan
From: janusgraph-users@... <janusgraph-users@...> on behalf of Joe Obernberger via lists.lfaidata.foundation
<joseph.obernberger=gmail.com@...>
Sent: Friday, June 17, 2022 8:12:04 AM To: janusgraph-users@... <janusgraph-users@...> Subject: Re: [janusgraph-users] Threaded Operations - Quarkus Thank you Marc. I'm currently doing everything with a traversal, and then doing a traversal.tx().commit() Thread 1/JVM1 gets a request that requires adding new vertices and edges to the graph. Code example (traversal is a GraphTraversalSource gotten from JanusGraphFactory.traversal()) try { . if (correlationVertex == null) { I do similar things with edges: Ultimately, I'd like to have several JVMs handling these requests; each which runs multiple threads. -Joe On 6/17/2022 8:01 AM,
hadoopmarc@... wrote:
Hi Joe, |
|