Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id EB2399F9F05 for ; Tue, 31 Jul 2007 18:10:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 72102-08 for ; Tue, 31 Jul 2007 18:10:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by postgresql.org (Postfix) with ESMTP id 6644C9FA040 for ; Tue, 31 Jul 2007 18:10:46 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id f5so1619nfh for ; Tue, 31 Jul 2007 14:10:43 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=pMBux/tv9HEcXYn+IdcWZmyzUwhzBkvw/Awz6TPd9FWb/cfKQdlifcarCtNjQShNby0dOlTE534ckAKoLnopn2Qh2Th0ePCpHIZWTvmkM2g1/eAfEQvAw8Ijxl5ab/kQSk4Mgi70d7Bpg2ARlTId8yPAxjiiRAlK97I98M8EMr4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=s3penZRRaEhXIIsZdK/Z5ek0ajaPaLOl9nlILY7wXnf+ShLDDgu20MiZQ8SZsbzKXeIvrat++IarWE7yvlXaKP/c86LUlECo2uX+Sy7Z2AUzREfbIszLkROwWfWJH4n6cWPjSINn5r+RqABfpw0B0OYfDsiAq5w9AOSzmJLO0BI= Received: by 10.86.74.15 with SMTP id w15mr6267fga.1185916243346; Tue, 31 Jul 2007 14:10:43 -0700 (PDT) Received: from ?192.168.0.199? ( [80.222.48.97]) by mx.google.com with ESMTPS id f31sm3653243fkf.2007.07.31.14.10.40 (version=SSLv3 cipher=RC4-MD5); Tue, 31 Jul 2007 14:10:41 -0700 (PDT) Message-ID: <46AFA547.9010407@enterprisedb.com> Date: Tue, 31 Jul 2007 22:10:31 +0100 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: Dave Cramer CC: List Subject: Re: statement caching patch from Laszlo Hornyak for review References: <2937D635-FCCB-471A-B1DA-AF0E0E0C18EB@fastcrypt.com> In-Reply-To: <2937D635-FCCB-471A-B1DA-AF0E0E0C18EB@fastcrypt.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/139 X-Sequence-Number: 17313 Dave Cramer wrote: > Laszlo Hornyak has finished off the proof of concept patch that I > submitted a few months ago. > > This driver implements prepared statement caching and was used by Sun to > achieve the excellent results for their benchmark. > > Statement caching has proven to provide a 30-40% improvement in the > benchmark results. FWIW, I'm still of the opinion that this doesn't belong in the JDBC driver. Is there anything in there that depends on PostgreSQL? You could just implement it as a generic wrapper, right? Don't get me wrong, I know it really can give a big boost in performance, and it's definitely worth having if your application server doesn't do statement caching already. I'd just prefer to keep the driver slim, and implement additional features as external modules. In fact, how about kicking our connection pool implementation out to an external module as well? The connection pool and the statement cache could live together as a pgfoundry project, or as an additional jar in the jdbc project. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com