user1401611
user1401611

Reputation: 173

Neo4jClient Data Import

I use Neo4jClient (.NET). I have to import master data like countries.

I've seen that Neo4j has a Java API for that (the batch insertion API). Is it possible to import data via the web interface or another tool?

If not, do I have to import the data via Neo4JClient wrapper with the Create() function?!

Thanks.

Upvotes: 4

Views: 1632

Answers (3)

Gertjan
Gertjan

Reputation: 529

Check out the Cypher neo4j import csv option. Maybe that helps. Otherwise just use a big Cypher query

http://neo4j.com/docs/milestone/query-load-csv.html

Upvotes: 0

Peter Neubauer
Peter Neubauer

Reputation: 6331

Also, could you try using Cypher CREATE since that is not as fast as Batch, but faster than REST, and should let you create stuff fast.

http://docs.neo4j.org/chunked/snapshot/cypher-cookbook-pretty-graphs.html gives some good hints ...

Upvotes: 0

Matt Luongo
Matt Luongo

Reputation: 14809

It will be much faster if you grit your teeth and do this using the batch insertion API- either by writing an import script in Java or another JVM language or by using Michael Hunger's batch inserter, which inserts data from CSV. Check out Max de Marzi's post on the topic for a good approach.

Even though REST bindings are trying to offer decent performance, they'll never be as fast as native database access- and even if they were, the batch insertion API strips down some of the database features (multi-thread access, etc) to great improve initial import time.

Upvotes: 1

Related Questions