Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 14328 invoked from network); 22 Oct 2009 13:23:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Oct 2009 13:23:32 -0000 Received: (qmail 61984 invoked by uid 500); 22 Oct 2009 13:23:32 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 61942 invoked by uid 500); 22 Oct 2009 13:23:32 -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 61934 invoked by uid 99); 22 Oct 2009 13:23:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2009 13:23:32 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [196.212.44.26] (HELO firewall.exinet.co.za) (196.212.44.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2009 13:23:28 +0000 X-Virus-Scanned: amavisd-new at exinet.co.za Received: from Meindert (meindert.exinet.co.za [172.16.1.65]) by firewall.exinet.co.za (8.14.3/8.14.3) with ESMTP id n9MDMusE072848 for ; Thu, 22 Oct 2009 15:22:56 +0200 (SAST) (envelope-from meindert@eduflex.com) From: "meindert" To: References: <007301ca5313$2edadda0$8c9098e0$@com> <011501ca5317$b09e5480$11dafd80$@com> <007501ca5318$548bd090$fda371b0$@com> In-Reply-To: <007501ca5318$548bd090$fda371b0$@com> Subject: RE: caching question Date: Thu, 22 Oct 2009 15:22:56 +0200 Message-ID: <011701ca531a$c4adf3b0$4e09db10$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcpTEyxILHbCF/VPTAqnf/0JhS3P5wABF5IwAAAtJjAAAE9/gA== Content-Language: en-za >Do you mean that actually it invokes the database when I execute the query? No, only the first time, the next time you ask the same query with the same parameters it will get the resultset from the cache The cache size is the number of different result sets are stored in the cache. So if you invoke the same query (with the same parameters) multiple times it only does one round trip. This is handy for example if you have a query that is executed after a logon. This same query is repeated every time a logon is done. So you could put the result in a server level variable or you use the ibatis cache. Another example would be a grid in your application that is requested by multiple users (as long if it is requested with similar parameters) If you're result set size is 800000 records or if the query parameters are different for every screen, ibatis caching is not for you, -----Original Message----- From: Odelya YomTov [mailto:odelya@jpost.com] Sent: 22 October 2009 03:05 PM To: user-java@ibatis.apache.org Subject: RE: caching question Do you mean that actually it invokes the database when I execute the query? If so, what is the point of caching? -----Original Message----- From: meindert [mailto:meindert@eduflex.com] Sent: Thursday, October 22, 2009 3:01 PM To: user-java@ibatis.apache.org Subject: RE: caching question It's the result you cache not the query. How many different query result would you like to cache -----Original Message----- From: Odelya YomTov [mailto:odelya@jpost.com] Sent: 22 October 2009 02:29 PM To: user-java@ibatis.apache.org Subject: caching question Hi! I have a global question about caching. I have in my database around 800000 recrods In cacheModel - what do you recommend as the size of the cacheModel? I am using the query almost in every screen. Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.423 / Virus Database: 270.14.20/2444 - Release Date: 10/21/09 16:44:00 --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org **************************************************************************** ******** This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses. **************************************************************************** ******** --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.423 / Virus Database: 270.14.20/2444 - Release Date: 10/21/09 16:44:00 --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org