ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yusuf" <Yu...@ekalife.co.id>
Subject RE: Cache
Date Wed, 22 Feb 2006 01:45:52 GMT
In my case, i tried to remove the dummy and the caching still worked..

Actually I've never used the wiki before :), but I tried to add in
http://opensource2.atlassian.com/confluence/oss/display/IBATIS/Frequentl
y+Asked+Questions
is it in the correct place?

Thanks,
Yusuf.

-----Original Message-----
From: Nathan Maves [mailto:Nathan.Maves@Sun.COM]
Sent: Wednesday, February 22, 2006 2:33 AM
To: user-java@ibatis.apache.org
Subject: Re: Cache


I don't think it is required but I would test it first :)

Nathan
On Feb 21, 2006, at 11:28 AM, Perry Nguyen wrote:

> 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