From: Paul van den Bogaard <Paul.Vandenbogaard@Sun.COM>
To: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: statement caching patch from Laszlo Hornyak for review
Date: Thu, 09 Aug 2007 17:44:45 +0200
Message-ID: <670726BC-C614-41DA-B1F3-03DC49441690@sun.com> (raw)
In-Reply-To: <531718e20708032347q87bf7efs11e748cbb61847aa@mail.gmail.com>
References: <2937D635-FCCB-471A-B1DA-AF0E0E0C18EB@fastcrypt.com>
<46B1B5CE.1050409@opencloud.com>
<Pine.BSO.4.64.0708021252420.14791@leary.csoft.net>
<33E43614-DF0E-4913-92DB-2E8EC4B1E156@fastcrypt.com>
<46B3B590.5060600@opencloud.com>
<531718e20708032347q87bf7efs11e748cbb61847aa@mail.gmail.com>
Hi,
I am quite new in the PostgreSQL arena. However I know there are
drivers that do implement SC (Oracle, mySQL, third party drivers for
DB2). I believe the application servers have this build in out of
pure necessity: when they needed it there simply were no drivers
available that offered this. Therefore the motivation "most of them
have it, so why should we offer it" sounds not too motivational to me.
I believe that since a statement is part of a connection the proper
place for a pool is within that connection (to me at least from an
architectural/design point of view). I feel any self respecting
driver should offer SC. Of course in a way that can also be used by
applications that have no need for it. Either because they know each/
most statements are a one time thing or for other reasons. Of-course
in a safe way, although I am not sure a wrapping object is the only
way to ensure this. This however is an discussion of implementation.
Why do I dare to make this bold statement?
First there are many more applications out there that use a database
but are not J2EE. Therefore these would not benefit from SC build
into application servers.
Second all the ISVs I have been working with (the majority in the
finance, erp, crm, telco segments) use a (transactional)database.
Some of them are using non prepared statements. Most of them are
using or planning to use prepared statements. All these ISVs use
Oracle and the Oracle JDBC driver (I only did meet one that also
offered a home made Oracle driver). They all use the SC feature.
Third these ISVs have so much work to do in their build,test,release
cycle that they will not easily accept another database. Let alone a
database that mandates the use of yet another element (the SC
wrapper) to get a feature they do need.
Fourth, the code they need to maintain is already so large that they
do not want to implement a SC feature themselves.
Hopefully these practical reasons are also taken into consideration
in the discussion if SC needs to be(come) part of the core.
Regards,
Paul
------------------------------------------------------------------------
---------------------
Paul van den Bogaard
Paul.vandenBogaard@sun.com
CIE -- Collaboration and ISV Engineering, Opensource Engineering group
Sun Microsystems, Inc phone: +31
334 515 918
Saturnus 1
extentsion: x (70)15918
3824 ME Amersfoort mobile: +31
651 913 354
The Netherlands
fax: +31 334 515 001
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: Paul.Vandenbogaard@Sun.COM, laszlo.hornyak@gmail.com, oliver@opencloud.com, pg@fastcrypt.com, books@ejurka.com
Subject: Re: statement caching patch from Laszlo Hornyak for review
In-Reply-To: <670726BC-C614-41DA-B1F3-03DC49441690@sun.com>
References: <2937D635-FCCB-471A-B1DA-AF0E0E0C18EB@fastcrypt.com> <46B1B5CE.1050409@opencloud.com> <Pine.BSO.4.64.0708021252420.14791@leary.csoft.net> <33E43614-DF0E-4913-92DB-2E8EC4B1E156@fastcrypt.com> <46B3B590.5060600@opencloud.com> <531718e20708032347q87bf7efs11e748cbb61847aa@mail.gmail.com> <670726BC-C614-41DA-B1F3-03DC49441690@sun.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