Uploaded image for project: 'iBatis for .NET'
  1. iBatis for .NET
  2. IBATISNET-104

QueryForXXX do not check cache before opening/closing connection

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • DataMapper 1.2.1
    • DataMapper 1.6
    • DataMapper
    • None

    Description

      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.

      Attachments

        Activity

          People

            gilles Gilles Bayon
            hesum H. E. Sum
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: