You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org> on 2006/11/15 21:23:37 UTC

[jira] Closed: (IBATISNET-104) QueryForXXX do not check cache before opening/closing connection

     [ http://issues.apache.org/jira/browse/IBATISNET-104?page=all ]

Gilles Bayon closed IBATISNET-104.
----------------------------------

    Fix Version/s: DataMapper 1.6
       Resolution: Fixed
         Assignee: Gilles Bayon

In SVN

> QueryForXXX do not check cache before opening/closing connection
> ----------------------------------------------------------------
>
>                 Key: IBATISNET-104
>                 URL: http://issues.apache.org/jira/browse/IBATISNET-104
>             Project: iBatis for .NET
>          Issue Type: Wish
>          Components: DataMapper
>    Affects Versions: DataMapper 1.2.1
>            Reporter: H. E. Sum
>         Assigned To: Gilles Bayon
>            Priority: Minor
>             Fix For: DataMapper 1.6
>
>         Attachments: Call IDalSession.OpenConnection in PreExecute event
>
>
> I was confused by SqlMapper opening and closing database connections even when items were cached. I thought that it was fetching results from the database, but when I looked at the source, it seemed like the QueryForXXX methods are opening connections, calling MappedStatement to fetch results and then closing connections. Perhaps opening/closing should be pushed to the MappedStatement Class so connections are used only when there's a cache miss.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira