ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perry Nguyen <pfngu...@hanhuy.com>
Subject Re: Cache
Date Tue, 21 Feb 2006 18:28:44 GMT
So, do we still need to use the dummy argument to hit the cache?  Or is 
that unnecessary?

Brandon Goodin wrote:
> Yusuf,
> 
> If this is not in the FAQ. I think it should be :) I've seen this
> happen more than once. Can you check the wiki, see if it is not there
> and add it to the FAQ?
> 
> Brandon
> 
> On 2/21/06, Yusuf <Yusuf@ekalife.co.id> wrote:
>> Hi, at last i found the problem...
>> I'm missing this config:
>>
>>         <settings
>>                 cacheModelsEnabled="true"
>>         />
>>

>> -----Original Message-----
>> From: Larry Meadors [mailto:lmeadors@apache.org]

>> Yeah...this is almost a bug, but not quite..the assumption is that if
>> you have no parameters that the query must change based on something
>> else, so it doesn't get cached. :-/
>>
>> A workaround (I think..) is to call the query with a parameter object
>> that you ignore.
>>
>> Object o = sqlmap.queryForList("ns.query", "ignoreMe");
>>
>> Larry


Mime
View raw message