commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe Mouawad (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DBCP-357) Connection validationQuery mechanism should be replaced by new method connection#isValid()
Date Thu, 28 Apr 2011 12:09:03 GMT
Connection validationQuery mechanism should be replaced by new method connection#isValid()
------------------------------------------------------------------------------------------

                 Key: DBCP-357
                 URL: https://issues.apache.org/jira/browse/DBCP-357
             Project: Commons Dbcp
          Issue Type: Improvement
    Affects Versions: 1.4, 1.4.1
            Reporter: Philippe Mouawad


Hello,
Current method of connection validation relies on validationQuery.
This method has a rather big performance impact on the DB (CPU, for example 3% with SELECT
1 FROM DUAL even with Oracle 10G FAST DUAL) and make an additional query for each borrow (when
testOnBorrow is true).
Wouldn't it be better to use new JDBC 4 method isValid which relies on Driver check ? (Oracle
would for example use its internal method ping)

Thank you
Philippe
http://www.ubik-ingenierie.com

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message