Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0508A9FA680 for ; Fri, 7 Sep 2007 10:57:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 03650-04 for ; Fri, 7 Sep 2007 10:57:03 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by postgresql.org (Postfix) with ESMTP id 2807F9FA039 for ; Fri, 7 Sep 2007 10:57:01 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id u77so1077646pyb for ; Fri, 07 Sep 2007 06:57:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=qdNDvpJPtq20RWV9DSUsEQl1p0s474x/e1d/KqMaAWI=; b=hEGuKMDUcPoJ5IfqmMH9Y1kqIk4qWH9bvUypk76nvzU7kNjAm0QJUtmRe7q59J9vVzxWmh5U5vveqF0TYUdR+4vD3zBv+aZKML4sAWnraZnG6W6rBEoU/lx1jkc6dJomMmhpshC+GzaJ7ynZdx9ek3nODE+6EKK1jRtMwCzA+Yg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dQ3Hid/unrOgl2j2S4iiFzDkuEBPkuI8OtuWwvex0SwNiBb+dZWao9FlxxuMkQ1ZM4m76Zi3huXS7Yq27YlXs7NKHvKK+x79T5W71QtTzkZByfq2arbEAH4f3iNj0Pq6qlm05Ik1V3DR2rRS0g1JxmCVRKKTrpk8D6vHDbnhUg0= Received: by 10.35.106.15 with SMTP id i15mr2074941pym.1189173416024; Fri, 07 Sep 2007 06:56:56 -0700 (PDT) Received: by 10.35.62.17 with HTTP; Fri, 7 Sep 2007 06:56:55 -0700 (PDT) Message-ID: <809bf8d30709070656q39ffc0fcp8eae7f0ded2d2039@mail.gmail.com> Date: Fri, 7 Sep 2007 15:56:55 +0200 From: "=?ISO-8859-1?Q?L=E1szl=F3_Horny=E1k?=" To: List Subject: Fwd: Caching driver on pgFoundry? In-Reply-To: <809bf8d30709070655j2458a13q64cb228ee0c172b2@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_71627_22664722.1189173415907" References: <200709050825.27080.josh@agliodbs.com> <200709050937.29027.josh@agliodbs.com> <8FD2948B-9513-4611-9310-908CA253EECD@fastcrypt.com> <46DF0F70.50802@enterprisedb.com> <1189156640.4175.464.camel@ebony.site> <30775804-224A-4807-BDDD-5ACB9A173BCA@fastcrypt.com> <46E14E80.9030409@opencloud.com> <809bf8d30709070655j2458a13q64cb228ee0c172b2@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/68 X-Sequence-Number: 17490 ------=_Part_71627_22664722.1189173415907 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sorry, I wanted to send this to the list... ---------- Forwarded message ---------- From: L=E1szl=F3 Horny=E1k Date: 07-Sep-2007 15:55 Subject: Re: [JDBC] Caching driver on pgFoundry? To: Oliver Jowett Hi! On 07/09/07, Oliver Jowett wrote: > > > > What is the implementation advantage of making statement pooling part of > the main driver? There are maintenance issues which count *against* it > being part of the driver so you need to provide a good reason to include > it. There are two main reasons I can mention: - JDBC 4 allows prepared statement pooling (Which is optional, the driver can ignore the programs request to cache the prepared statement, and I believe it enables some kind of early optimization for those who like to do early optimizations. But that is just my opinion, but JDBC 4 specification expects drivers to deal with it. Time will tell, maybe data access layers like hibernate or JPA implementations in the future will use it) see http://java.sun.com/javase/6/docs/api/java/sql/Statement.html#setPoolable%2= 8boolean%29 - Clients that do not use DataSource, but only DriverManager can gain significant speed improvement. Now, you get prepapred statement caching if the wrapper ( e.g. DBCP) gives it, not if you use a pg connection directly. Packaging issues are IMO fairly irrelevant because if you must give a > single package to your users, you can always take the base driver and a > separate pooling wrapper, package them together, and say "Hey look here > is the statement-pooling postgresql JDBC driver". Yes, any developer can do that, but it would probably save some time for developers if they wouldn't have to. -O > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match > --=20 L=E1szl=F3 Horny=E1k --=20 L=E1szl=F3 Horny=E1k ------=_Part_71627_22664722.1189173415907 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sorry, I wanted to send this to the list...

---------- Forwarded mes= sage ----------
From: L=E1szl=F3 Horny=E1k <kocka.public@gmail.com >
Date: 07-Sep-2007 15:55
Subject: Re: [JDBC] Caching driver o= n pgFoundry?
To: Oliver Jowett <oliver@opencloud.com>

Hi!

On 07/09/07, Oliv= er Jowett <oliver@opencloud.= com > wrote:


What is the implementation advantage of making statement pooling pa= rt of
the main driver? There are maintenance issues which count *against= * it
being part of the driver so you need to provide a good reason to in= clude it.

There are two main reasons I can mention:
-= JDBC 4 allows prepared statement pooling (Which is optional, the driver ca= n ignore the programs request to cache the prepared statement, and I believ= e it enables some kind of early optimization for those who like to do early= optimizations. But that is just my opinion, but JDBC 4 specification expec= ts drivers to deal with it. Time will tell, maybe data access layers like h= ibernate or JPA implementations in the future will use it) see=20 http://java.sun.com/javase/6/docs/api/java/sql/Stat= ement.html#setPoolable%28boolean%29
- Clients that do not use DataSource, but only DriverManager can ga= in significant speed improvement. Now, you get prepapred statement caching = if the wrapper ( e.g. DBCP) gives it, not if you use a pg connection directly.

Packaging issues are IMO fairly irrelevant because if you must give a
single package to your users, you can always take the base driver and a=
separate pooling wrapper, package them together, and say "Hey look= here
is the statement-pooling postgresql JDBC driver".

Yes, any developer can do that, but it would probably save = some time for developers if they wouldn't have to.


-O

---------------------------(end of broadcast)--------------------= -------
TIP 9: In versions below 8.0, the planner will ignore your desir= e to
       choose an index scan if your j= oining column's datatypes do not
       match



--
L=E1szl=F3 Horny=E1k

--
L=E1szl=F3 Horny=E1k ------=_Part_71627_22664722.1189173415907--