Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 30793 invoked from network); 22 Feb 2006 01:50:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Feb 2006 01:50:51 -0000 Received: (qmail 19604 invoked by uid 500); 22 Feb 2006 01:50:50 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 19592 invoked by uid 500); 22 Feb 2006 01:50:49 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 19581 invoked by uid 99); 22 Feb 2006 01:50:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2006 17:50:49 -0800 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [202.58.71.77] (HELO ekalifid1.ekalife.co.id) (202.58.71.77) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 21 Feb 2006 17:50:47 -0800 Received: (qmail 21731 invoked from network); 22 Feb 2006 01:50:21 -0000 X-NetworkBox-HamSign: 0101;OUT;ekalifid1;5ba5aae6671ba315e0398480d909e4b5; Received: from unknown (HELO ekalife.co.id) (128.21.32.2) by 128.21.32.27 with SMTP; 22 Feb 2006 01:50:21 -0000 Received: from ekamailserver.ekalife2000.com [128.21.32.15] by ekalife.co.id [128.21.32.2] with SMTP (MDaemon.v3.5.8.R) for ; Wed, 22 Feb 2006 08:47:20 +0700 Subject: RE: Cache MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 22 Feb 2006 08:45:52 +0700 Message-ID: X-MS-Has-Attach: X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 Content-Class: urn:content-classes:message X-MS-TNEF-Correlator: Thread-Topic: Cache Thread-Index: AcY3Pyyql9pXMTOaTRSceQqEEqyMCQADnpqw From: "Yusuf" To: X-MDRemoteIP: 128.21.32.15 X-Return-Path: Yusuf@ekalife.co.id X-MDaemon-Deliver-To: user-java@ibatis.apache.org X-Scanned-By-ekalifid1: Virus scan performed by network-box X-Scanned-By-ekalifid1: Scanner file id is ekalifid1-1140573021.461-21728-000 X-Scanned-By-ekalifid1: No known viruses found in message (received+scanned in 0.03/0.09 secs) X-Scanned-By-ekalifid1: Spam-Check-Result: No, hits=0 required=7 tests= autolearn=no version=2.0 X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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? =20 > 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 wrote: >>> Hi, at last i found the problem... >>> I'm missing this config: >>> >>> >> cacheModelsEnabled=3D"true" >>> /> >>> > >>> -----Original Message----- >>> From: Larry Meadors [mailto:lmeadors@apache.org] > >>> Yeah...this is almost a bug, but not quite..the assumption is =20 >>> 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 =20 >>> object >>> that you ignore. >>> >>> Object o =3D sqlmap.queryForList("ns.query", "ignoreMe"); >>> >>> Larry >