openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dick <>
Subject Re: Version of all children is incremented in OneToMany when merging parent entity
Date Fri, 05 Aug 2011 14:30:39 GMT
Statement batching is an OpenJPA optimization. By default OpenJPA will try
to use JDBC statement batching. There's a section in the user manual at :

Depending on the application, statement batching can provide a significant
performance boost. For example inserting several rows to the same table can
be batched, and executed in a single conversation with the database.

If your application updates several different tables, or different parts of
the same table, statement batching provides less of a benefit.

If you believe it will not benefit your app, or you want to remove the
batching from the equation, you can disable batching by adding the following
property to persistence.xml :

<property name="openjpa.jdbc.DBDictionary" value="batchLimit=0"/>

Hope this helps,

On Fri, Aug 5, 2011 at 8:27 AM, M. Walter <> wrote:

> Please can anyone explain to me when "batching prepstmnt" occurs? What
> exactly is the cause of this? What are the reasons causing OpenJPA to batch
> statements?
> --
> View this message in context:
> Sent from the OpenJPA Users mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message