Created
June 9, 2016 09:35
-
-
Save daemonfire300/ac563d2f732ffc4954a27a344fc7a1fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE CONSTRAINT ON (l:Location) ASSERT l.locationid IS UNIQUE; | |
CREATE INDEX ON :Location(locationid); | |
USING PERIODIC COMMIT 5000 | |
LOAD CSV WITH HEADERS FROM 'file:///wln_label-type.txt.csv' AS line WITH line | |
MERGE (location:Location {locationid: toInt(line.locationid)} ) | |
RETURN COUNT(location); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment