Load2neo is a server extension written for Neo4j 2.0 and upwards that provides a facility for bulk loading data into a Neo4j database. Currently, only the Geoff format is supported although it is planned that support for other formats will follow.
To install, you will first need to download the latest distribution from here:
- load2neo-0.6.0.zip (24.5 kB)
This zip archive contains three files - two jars which need to be copied to your server's plugin directory and a neo4j-server.properties file that contains content to be added to the identically named file within the server's conf directory. This is a single line which mounts the plugin at the correct URI offset:
curl -X POST http://localhost:7474/load2neo/load/geoff -d '(a)<-[:KNOWS]->(b)'
curl -X POST http://localhost:7474/load2neo/load/geoff -d @foo.geoff
curl -X DELETE http://localhost:7474/load2neo/all-the-things
In limited tests, load2neo has shown good performance. The timings below were taken for a repeated load of a test file containing 40,000 nodes and 40,000 relationships on a quad-core AMD Phenom™ II X4 965 with 4GB RAM.
|turn||parse time (ms)||load time (ms)|
* The first turn was discarded to allow the cache to warm up