X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 9707E9F9F2D for ; Mon, 19 Jun 2006 20:52:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 18299-04 for ; Mon, 19 Jun 2006 20:52:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mir3-fs.mir3.com (mail.mir3.com [65.208.188.100]) by postgresql.org (Postfix) with ESMTP id B44109F9316 for ; Mon, 19 Jun 2006 20:52:02 -0300 (ADT) Received: mir3-fs.mir3.com 172.16.1.11 from 172.16.2.68 172.16.2.68 via HTTP with MS-WebStorage 6.0.6249 Received: from archimedes.mirlogic.com by mir3-fs.mir3.com; 19 Jun 2006 16:51:59 -0700 Subject: Re: statement caching proof of concept From: Mark Lewis To: Dave Cramer Cc: Oliver Jowett , List In-Reply-To: References: <4077BF73-482B-46C8-B65D-2E1FD2465294@fastcrypt.com> <44973024.4010204@opencloud.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: MIR3, Inc. Date: Mon, 19 Jun 2006 16:51:59 -0700 Message-Id: <1150761119.19111.45.camel@archimedes> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-27) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/62 X-Sequence-Number: 15342 On Mon, 2006-06-19 at 19:34 -0400, Dave Cramer wrote: > How does the generic wrapper solve the problems above ? I would think > they all suffer from the same problems ? All of the prepared-statement caching mechanisms I've been exposed to solve the problem by giving you a non-shared object that wraps the real PreparedStatement, and ensuring that once the wrapper is closed, you can no longer access the underlying statement. -- Mark Lewis