USING PERIODIC COMMIT 500 LOAD CSV WITH HEADERS from "file:///track_ex.csv" as row OPTIONAL MATCH (p:Product {productId: toInteger(row.RELEASE_ID)}) MERGE (t:Track {trackId: toInteger(row.ID)}) ON CREATE SET t.name = row.TRACK_NAME MERGE (p)-[r:INCLUDES]->(t);