openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: JPAB results
Date Fri, 12 Nov 2010 00:27:19 GMT
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 <curtisr7@gmail.com> 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
>

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