I'm using BatchInserter to initialise my Neo4j database - the data is coming from XML files on my local filesystem.
Suppose one set of files contains node information / properties, and another set has relationship information. I wanted to do two passes: create all the nodes, then set about creating the relationships.
However, the createRelationship method accepts a long id for the nodes, which I don't have in my relationship XML - all of my nodes have a GUID as a property called ID which I use to reference them.
Does BatchInsert mean it hasn't been indexed yet, so I won't be able to create relationships on nodes based on some other property?
neo4j-import
command (which I think uses BatchInsert) you won't have any indexes and you need to create them after all of the data is loaded. But you should still be able to create relationships on properties. It just might be slow until you index them (and remember that if you add an index it might have to process for a bit before it comesONLINE
. See the:schema
command in the web console) – Brian Underwood