Ilan -

Looks like I sent the previous email a little prematurely, please try
setting this DBCP property also.

<property name="openjpa.ConnectionProperties"
value="poolPreparedStatements=true"/>

Thanks,
Rick

On Thu, Nov 11, 2010 at 4:07 PM, Rick Curtis <[email protected]> wrote:

> Ilan -
>
> I did some perf testing / profiling today and came across another property
> that should help out quite a lot.
>
> property-3=<property name="openjpa.ConnectionRetainMode" value="always"/>
>
> The net of this property is that each EntityManager will keep a connection
> open to the DB as long as it is alive. Note to anyone else reading this
> post: This property shouldn't be used in a container managed environment as
> EntityManagers can bee pooled and in turn connections will never be closed.
>
> Let me know how it goes. Thanks for all of the hard work!
>
> Rick
>

Reply via email to