Too small transaction sizes?

How many elements do you create per transaction? Each tx.close() -> commit
forces a disk flush, and if the ration between data creation and disk flush
is too small, then you spent all the time waiting for your disk.
You should batch them (or test with 2.2. when the first milestone comes
out, this issue is addressed there)

On Mon, Nov 24, 2014 at 3:35 PM, Moath Qasim <[email protected]> wrote:

> Hello Michael,
>
> I have changed to the Java API Core and I am still having the same
> problem, and even when I am doing one single operation like create a new
> node let us say I am spending more than 20 ms, so what's wrong ?
>
> On Wednesday, November 19, 2014 2:34:43 AM UTC+1, Michael Hunger wrote:
>>
>> Depends on your use-cases, for 80-90% cypher is fine, if you have one
>> high core, high performance aspect that doesn't cut it with cypher, use the
>> core Java API.
>>
>> On Tue, Nov 18, 2014 at 7:43 PM, Moath Qasim <[email protected]> wrote:
>>
>>> Hello,
>>>
>>> I am new to Neo4j, and I have been testing it for a while  in order to
>>> use it in the Future, what I am doing at the moment is, using the
>>> newEmbeddedDatabase in order to connect to my data base, and I am writing
>>> Cypher queries in order to persist massive amount of data and create some
>>> relationship between my nodes.
>>>
>>> My question is what is the best way in order to persist or retrieve
>>> data? in other words what is the best practice to do in order to get a high
>>> scalability and performance?
>>>
>>> Thanks in Progress.
>>>
>>> --
>>> 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.
>

-- 
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