I am trying to add new record that is a whole row into a labelled node in neo4j graph db. Lets say I have node named Customer
╒══════════════════════════════════════════════════════════════════════╕
│"n" │
╞══════════════════════════════════════════════════════════════════════╡
│{"DISTRICT":"abc","THANA":"xyzzy","DIVISIO│
│N":"abc","REGDATE":"1-2-2015","ID":"0123"} │
├──────────────────────────────────────────────────────────────────────┤
I want to add another row consists with these fields and relevant value from reading a csv file. This nodes holds a large data. so I think apoc with periodic iteration will be good idea for processing it parallel. but I am confused about adding a whole row into a labelled node. I have learnt to update property information through "merge on set on create" approach but can't perform to add new record into labelled node. I am expecting to see a table consisted new record having labelled node (customer). kindly help me to solve this
MERGE
and apoc periodic iteration doesn't work. It throws NULL POINTER Exception. and if you set parallel processing false, then it will perform similar toLOAD CSV
. Use periodic iteration and parallel processing only if you are usingCREATE
. – Rajendra KadamCustomer
). Is that correct? If so, take a look at LOAD CSV. – cybersam