ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gopal.narayanan (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Created: (IBATIS-180) Caching question
Date Tue, 09 Aug 2005 01:55:42 GMT
Caching question

         Key: IBATIS-180
         URL: http://issues.apache.org/jira/browse/IBATIS-180
     Project: iBatis for Java
        Type: Bug
    Versions: 2.1.0    
 Environment: jdk1.4.2, windows xp
    Reporter: gopal.narayanan

I am not sure this is a bug.
I am trying to use ibatis caching.
Sql statements which do not have any parameters eg 
    select fname,lname from users
seem to work well under caching.
This is how I tested, after the 1st call to the sql, the db was shutdown, the next call returned
the data from the cache. The time to fetch was considerably lower, indicating that data was
from the cache.
But this test failed when the sql stmt was of the form 
select fname,lname from users where lname = #value#
It seemed that it always need a db connection ( seems like the cache is flushed always)
Is that so? In that case can we not use ibatis caching?

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message