The 2.0 jdbc driver supports the tx-endpoint, but only with single statement per request, addBatch is not implemented yet, but would be a good idea.
Michael Am 09.02.2014 um 11:22 schrieb Mark Needham <[email protected]>: > Does it have to be JDBC based? > > If not then perhaps you could use the HTTP Transactional API which does what > you want: http://docs.neo4j.org/chunked/milestone/rest-api-transactional.html > > > On 9 February 2014 00:37, frandro <[email protected]> wrote: > 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. > > > -- > 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. -- 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.
