I am currently trying to insert lots of data into neo4j. by using the neo4j java-rest-binding library, i am doing batch insertions by 500 cypher queries, Currently I have at most 200k nodes and 1.4m relationships stored in my graph.
With my current data i am already experiencing request timeouts during insertion, I was wondering if there are any configurations that could make the inserting of batch requests faster.
Or maybe some improvements to the query I am currently using Also here is a sample query being used,
MERGE (firstNode {id:'ABC'})
ON CREATE SET firstNode.type="RINGCODE", firstNode.created = 100, firstNode:rbt
ON MATCH SET firstNode.type="RINGCODE", firstNode:rbt
MERGE (secondNode{id:'RBT-TC664'})
WITH firstNode, secondNode OPTIONAL MATCH firstNode - [existing:`sku`] - ()
DELETE existing
CREATE UNIQUE p = (firstNode)-[r:`sku`]-(secondNode) RETURN p;