You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Phil Steitz (JIRA)" <ji...@apache.org> on 2014/05/31 06:08:02 UTC
[jira] [Closed] (DBCP-399) Rollback on
PoolableConnectionFactory.passivateObject() has to be configuration
controlled.
[ https://issues.apache.org/jira/browse/DBCP-399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phil Steitz closed DBCP-399.
----------------------------
> Rollback on PoolableConnectionFactory.passivateObject() has to be configuration controlled.
> -------------------------------------------------------------------------------------------
>
> Key: DBCP-399
> URL: https://issues.apache.org/jira/browse/DBCP-399
> Project: Commons Dbcp
> Issue Type: Bug
> Affects Versions: 1.4
> Environment: Any databases, especially on those, where the rollback calls are costly.
> Reporter: Girish Adat
> Labels: easyfix, performance
>
> In certain databases like IBM DB2, the rollback calls are costly. Also, on any database, this avoids an unnecessary call to DB upon returning a connection back to pool, and thus enhances the application performance.
> So it would be good, if there is an optional configuration parameter that controls the "rollbackAsCleanUpAction" behaviour. This can be made "false" (can be true by default, aiming current users) if the application can guarantee itself that, no connection is returned to the pool without an explicit call to commit() or rollback(), even in the case of a non-readonly and non-autocommit connection.
> A few more bits: This caused a 1/11, i.e. approx 10% performance loss in our application. Hence making this a bug (a performance issue), and not a Feature Request / Improvement!
--
This message was sent by Atlassian JIRA
(v6.2#6252)