Hi,

That is possible (and even recommended). The Java API is thread safe
(with the exception of batch inserter) both for reads and writes.

Each thread may use its own transaction but it is not required to have
a transaction when performing read operations (only for writes).
Reading is lock free and will always read the last committed value. A
multi core CPU is required to let the threads execute in parallel with
the advantage of scaling reads with the available number of cores.

It is not possible to have a transaction associated with more than one
thread at a time (but you can suspend a transaction and resume it in
another thread if needed).

Regards,
Johan

On Fri, Jun 17, 2011 at 2:23 PM, Norbert Tausch <[email protected]> wrote:
> Hi,
>
> is it possible to traverse on a Neo4J graph DB using the Java API in
> parallel threads? Is this possible within one transaction or does every
> thread has to use its own transaction? Is the API thread-safe concerning
> read-only access?
> Is there any advantage of concerning parallelism when using Neo4j as an
> embedded DB?
>
> Best regards
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to