What kind of disk do you have and how is it configured?
What did you configure for page-cache?
Do you parallelize your requests (with one session per thread) ?

You should keep the session open, otherwise you are re-opening a new
session for every operation.

Also usually you would batch updates like this, is there a reason why you
do one node at a time?
If you only want to do one at a time you should probably use sessoin.run()
And also please consume or discard the result.

HTH

Michael

On Fri, Jan 27, 2017 at 8:14 AM, <[email protected]> wrote:

> Are we doing something wrong or it is actually performing so slow in Neo4j
> Enterprise Edition.
>
> We are trying to create just one node (1 node with 2 property-Name and
> ID), 10,00,000 times. 3 Core machines are present in the cluster. 32GB is
> given to each core.
>
> Each second, we can see only 300-350 nodes are being created in Neo4J
> (checked from Neo4j browser). Is it so slow or are we missing something
> really big.
>
> This is absymal low.
>
> OS is RHEL.
>
> We were targeting close to 40,000 TPS but this is way way too low.
>
> I am sure we are missing something big.  Appreciate guidance so that we
> can evaluate and use it.
>
> Code snippet:
>
> @Override
>
>             public void createNode() throws InterruptedException {
>
>
>
>                         try (Session session = RTNeo4j.getInstance().
> getWriteDriver().session(AccessMode.WRITE)) {
>
>                                     try (final Transaction tx =
> session.beginTransaction()) {
>
>                                                 try {
>
>                                                             tx.run("CREATE
> (a:Person {name: {name}, id: {id}})",
>
>
> parameters("name", "king", "id", System.currentTimeMillis()));
>
>
>
>                                                           tx.success();
>
>
>
>                                                 } catch (Exception e) {
>
>
>
>
> e.printStackTrace();
>
>                                                 }
>
>                                     }
>
>                         }
>
>
>
>             }
>
>
> --
> 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/d/optout.
>

-- 
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/d/optout.

Reply via email to