Is there any example for java language? I'm not familiar with HTTP.
2014년 2월 9일 일요일 오후 7시 22분 4초 UTC+9, Mark Needham 님의 말: > > 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] <javascript:>> 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] <javascript:>. >> 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.
