cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

DeadlockDetected when parallelizing ingestion code

I have written an ingestion script in python (using neo4j driver) to wrangle some data and construct cypher CREATE queries.

My code runs fine as a single-threaded program but I would like to parallelize and use threading to speed it up. I have added some code to parallelize the operations (using the concurrent.futures.ProcessPoolExecutor module) but when I run my code again with multiple workers I get intermittent Neo.TransientError.Transaction.DeadlockDetected errors. Note for each "worker" I am using a separate session from a global driver object.

Is there a way to prevent these locks so that I can parallelize this ingestion script?

Thanks

0 REPLIES 0
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online