[Neo] Node vs NodeID questions

2009-12-17 Thread Rick Bullotta
Is it safe to hold on to a Node object and share it across threads? In particular, in order to speed up some common traversals, we were thinking of maintaining references to the "root" nodes of a few important subgraphs in our Neo instance. If it isn't OK to do so, I would guess that it is safe t

Re: [Neo] Node vs NodeID questions

2009-12-17 Thread Johan Svensson
Yes, you can share Node/Relationship objects across threads. Everything should be thread safe by default (if not stated otherwise in the javadoc) but remember threads will only see their transaction context and committed data. -Johan On Thu, Dec 17, 2009 at 9:02 PM, Rick Bullotta wrote: > Is it