pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: statement caching patch from Laszlo Hornyak for review
Date: Tue, 31 Jul 2007 22:10:31 +0100
Message-ID: <46AFA547.9010407@enterprisedb.com> (raw)
In-Reply-To: <2937D635-FCCB-471A-B1DA-AF0E0E0C18EB@fastcrypt.com>
References: <2937D635-FCCB-471A-B1DA-AF0E0E0C18EB@fastcrypt.com>

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



view thread (19+ messages)  latest in thread

Message-ID: <46AFA547.9010407@enterprisedb.com>
Permalink:  ../46AFA547.9010407@enterprisedb.com/
Also on:    postgresql.org/message-id/46AFA547.9010407@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: heikki@enterprisedb.com, pg@fastcrypt.com
  Subject: Re: statement caching patch from Laszlo Hornyak for review
  In-Reply-To: <46AFA547.9010407@enterprisedb.com>
  References: <2937D635-FCCB-471A-B1DA-AF0E0E0C18EB@fastcrypt.com> <46AFA547.9010407@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox