Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 44869 invoked from network); 23 Aug 2009 20:47:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Aug 2009 20:47:05 -0000 Received: (qmail 28322 invoked by uid 500); 23 Aug 2009 20:47:25 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 28273 invoked by uid 500); 23 Aug 2009 20:47:25 -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 28264 invoked by uid 99); 23 Aug 2009 20:47:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Aug 2009 20:47:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rickcr@gmail.com designates 74.125.78.145 as permitted sender) Received: from [74.125.78.145] (HELO ey-out-1920.google.com) (74.125.78.145) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Aug 2009 20:47:16 +0000 Received: by ey-out-1920.google.com with SMTP id 13so432394eye.60 for ; Sun, 23 Aug 2009 13:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=RdAi24XvtJgXmfdn5FwoDBLOETEArA27jqb0ZAaY6Fw=; b=OfFH48HajJpjjujZlWJF6ktO+ffGIIjBFofHWYordQnwMz0oQNPUhhNf7/Nu2JP+Ez SX+nf0+WqOILG5te/q66Kw4li877uoBpM66YfUYfKDN806+498/QaYnSd6G2aTRIGxQ/ rF584XpajDs6tZMJQdfX9VrjlbIpKoife8e+k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=bIHGAQLWpGdg13h11zWDw4yhPD+QCn61chMCQaLwVD5KiRQCCSRl7mh2r8WjBY25+h VGfdIketLY/1YDlb/jKe+5MwrA0I55QiNFkoxaJCDfoyfwEjNqsierDZ4777Iy3lvemu nB0Sz3a4xzIcJeiOJUYm58Axoer1qk6qj65xU= MIME-Version: 1.0 Received: by 10.216.55.195 with SMTP id k45mr781396wec.70.1251060415541; Sun, 23 Aug 2009 13:46:55 -0700 (PDT) In-Reply-To: <16178eb10908231332n524724e6wb34a883a6b6037f2@mail.gmail.com> References: <583d4dff0908231323k75e59ab8se4db6177d4597cde@mail.gmail.com> <16178eb10908231332n524724e6wb34a883a6b6037f2@mail.gmail.com> Date: Sun, 23 Aug 2009 16:46:55 -0400 Message-ID: <583d4dff0908231346y63866b73ga85df41dc7cc883d@mail.gmail.com> Subject: Re: confusing on caching prepared statements with datasource and openSession? From: Rick To: user-java@ibatis.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org So just for my own understanding... If I configured a datasource that uses pstmt caching (which for example c3p0 can do on a per-connection basis, which isn't a standard implementation I know), can I just not even bother opening a Session in iBATIS with ExecutorType.REUSE and I'd still get caching implemented by the underlying datasource? Sounds like I'm best not even worrying about it and just use openSession(). On Sun, Aug 23, 2009 at 4:32 PM, Clinton Begin wro= te: > iBATIS only caches at the connection level anyway.=A0 The broad support f= or > this is lacking, so I just avoided the problem. > > 99% of the gain with psmt caching is in loops in a single thread anyway..= .. > > Clinton > > On Sun, Aug 23, 2009 at 2:23 PM, Rick wrote: >> >> I thought that most datasources allow you to cache preparedStatements >> at the datasource level, so I'm confused what affect using >> sqlSessionFactory.openSession(ExecutorType.REUSE) would be if you >> have, or don't have, your datasource set to cache pstmts and you call >> (and not call) openSession with ExecutorType.REUSE ? >> >> -- >> Rick R >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org >> For additional commands, e-mail: user-java-help@ibatis.apache.org >> > > --=20 Rick R --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org