yes you have to create the index-entries manually
#1 make sure to shutdown all the batch-indexes when you shutdown the inserter
#2 template.postEntityCreation() is still the way to go, but not usable with the batch-inserter
#3 you have to add the property __type__ with the FQN as value, and add the index-entry for the node to index __types___, key "className", value FQN (or __rel_types__)
Please try it on a small dataset first.
How big is the dataset you want to import?
HTH
Michael
Yea, I figured. I have the BatchInserter implementation complete, and it is
orders of magnitude faster, but to do the postEntityCreation() I'd have to
introduce SDN (and Spring) stack on top of this thing. Or post-process all
nodes on a SDN-aware app.
> #3 you have to add the property __type__ with the FQN as value, and add the index-entry for the node to index __types___, key "className", value FQN (or __rel_types__)
Ok. Let me give it a go. It shouldn't be too complicated really.
> Please try it on a small dataset first.
>
> How big is the dataset you want to import?
About 200M nodes, and upto 300M relationships.
-TPP
Looks like this is working just fine.
I ran a quick test run, and compared the Lucene indexes created by SDN
app to the indexes created by the BatchInserter with Luke. They're
looking identical.
The BatchInserter is doing roughly 10,000 nodes per second.
-TPP
if you give it more memory so that the all of the node- and some of the rel-store files fit into memory it should be able to insert up to 1-3 million nodes per second (ok, w/o lucene).
I would love if you could write a blog post about that.
Michael
I followed the steps at http://code.paananen.fi/2012/04/05/neo4j-batchinserter-and-spring-data-for-neo4j/. After creating index using BatchInserterIndex, SDN repository fails to recognize the same index. Query using repository with @Query throws org.neo4j.cypher.MissingIndexException: Index <created index name, e.g. actors> does not exist. I am using 1.8.M07 and SDN 2.1.0.RC3. The same query works find in shell.MyRepository extends GraphRepository<MyType>, RelationshipOperationsRepository<MyType>What am I missing?
--
--
--
--
--
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/fPBka4Ld2YA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.