Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-24-2019 01:13 AM
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
10-24-2019 05:18 AM
Hi!
The first thing to check would be have you set indexes on your 'unique' properties? In this example, those would be on person.name
Information on indexes is here.
The next thing to bear aware of is eager queries. Mark Needham has done an excellent post on this. He describes splitting out part of your LOAD CSV query to avoid out of memory challenges.
All the sessions of the conference are now available online