I am starting to work with Neo4j Java API. I want to run a global traversal
query on my database which takes quite a long time due to aggregations. I
am thinking of using multiple threads to traverse through the database. So
far on my Java project I have:
public static void main( String[] args )
{
GraphDatabaseService database = new
GraphDatabaseFactory().newEmbeddedDatabase( DB_PATH );
registerShutdownHook( database );
try (Transaction tx = database.beginTx())
{
retrieveConnections(database, startNode, endNode);
tx.success();
out.println(“Finished”);
}
}
What is the best approach here? By using the startNode and endNode I could
separate the threads to avoid conflicting issues. Should I call multiple
threads inside the 'tx' transaction? Are there any examples with
multithreading in Neo4j that I can look up? I would appreciate any help.
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.