I need to insert a million nodes with a batch. The performance of using
RestGraphDatabase is horrible.
So I'm trying it with a JDBC driver from
http://www.neo4j.org/develop/tools/jdbc.
It seems the JDBC driver does not support batch processing.
Neo4jDatabaseMetaData.supportsBatchUpdates() returns false.
The thing I'd like to try is as follows.
Is there any JDBC driver that supports batch processing?
Or are there other recommended methods to do this?
for(int i=0; i<MAX_NODES; i++)
{
query = "CREATE (n:User {name:\"" + i + "\"})";
statement.addBatch(query);
}
statement.executeBatch();
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.