neo4jphp icon indicating copy to clipboard operation
neo4jphp copied to clipboard

Use cypher transaction to create nodes with labels running very slow.

Open eranhazout opened this issue 10 years ago • 1 comments

Hi

I have tried the two methods to batch create nodes with labels an non of them work fast enough.. startBatch() works fast but cannot create nodes with labels. beginTransaction() works slow but with option to add labels. (3.5 seconds to create 100 nodes with labels)

Any solution for that?

eranhazout avatar Oct 15 '14 10:10 eranhazout

How many queries are you batching per transaction when using beginTransaction()? What version of Neo4j and on what hardware are you running it?

I'm asking this because I'm using..

  • 1000 queries/transaction
  • Neo4j 2.2.5
  • on a dual core VM with 4GB RAM and no SSD
  • Java heap space set to 2g

..and it handles 360 nodes/sec (10x faster), consistently for several hours

nebkam avatar Sep 23 '15 09:09 nebkam