Hello All,
Good day. I am new to neo4j and taking time to explore things however I got stuck with loading data from csv.
I am trying to load 200k data using Load csv function with using periodic commit options but it takes time to load and pops 'out of memory error'.
As per community blog have changed the heap size of my db to 16G but still no change on the output(It taking too much time to run). Appreciate your inputs on this to overcome the error.
Please find the code which I am using to load it:
USING PERIODIC COMMIT 500 LOAD CSV WITH HEADERS FROM "file:///C:/tree.csv" as Real
MERGE(P:person{name:Real.ParentNode})
MERGE(C1:person{name:Real.ChildNode})
CREATE(P)-[REL:relation_of{id:Real.RelationId}]->(C1)
RETURN P,C1,REL
Thank you