I am building an application that needs to execute lots of Cypher statements against Neo4j. I execute these statements in 10K batches and commit them, however I often run into an error:
Supplied bookmark does not conform to pattern neo4j:bookmark:v1:tx
I am not sure what to do about it and I don't know why it is occurring. Here is the snippet of code that is executing the statements:
with driver.session() as session: # _batch_statements just yields batches of 10K cypher statements from the list statements for batch in _batch_statements(statements): with session.begin_transaction() as tx: for statement in batch: tx.run(statement) tx.commit()
Anyone have any ideas as to why this would happen? any potential solutions?