songololo
songololo

Reputation: 4954

Batch insertion neo4j - best option?

I've been trying to import a relatively large dataset into neo4j...approximately 50 million nodes with relationships.

I first experimented with Cypher via py2neo -> which does work, but becomes very slow if you need to use CREATE UNIQUE or MERGE.

I'm now looking at other batch import methods, and I'm wondering if there are recommendations for which of these approaches is the best for general workflow and speed:

I would greatly appreciate any comments on functionality, workflow, and speed differences between these options.

Upvotes: 3

Views: 1011

Answers (1)

Byron Ruth
Byron Ruth

Reputation: 987

If you can use the latest version of Neo4j the recommended way is to use the new LOAD CSV statement in Cypher: http://docs.neo4j.org/chunked/stable/cypherdoc-importing-csv-files-with-cypher.html

Upvotes: 1

Related Questions