Re: Gremlin giving stale response


Aman <amandeep.srivastava1996@...>
 

Hi Marc,

Using read-only strategy is a really good suggesion. Let me try that, thanks!

Regards,
Aman


On Tue, 15 Mar, 2022, 12:45 pm , <hadoopmarc@...> wrote:
Hi Aman,

Without saying that I understand everything of the JanusGraph behaviour that you describe, I can add the following:
  • when accessing the graph via JanusGraph server (what you call the gremlin API) every request is a transaction already (unless you use sessions). So, using buildTransaction for defining g in JanusGraph Server is counterintuitive and possibly enters untested territory.
  • Apache TinkerPop has the so-called ReadOnlyStrategy to realize the behaviour you want. Can you try that instead?
Best wishes,    Marc

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.