From: Craig Ringer <craig@2ndquadrant.com>
To: Albe Laurenz <laurenz.albe@wien.gv.at>
To: Guillaume Cottenceau *EXTERN* <gc@mnc.ch>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: performance question: protocol v2 vs v3
Date: Wed, 03 Dec 2014 21:44:21 +0800
Message-ID: <547F13B5.8080504@2ndquadrant.com> (raw)
In-Reply-To: <A737B7A37273E048B164557ADEF4A58B17DA76B4@ntex2010a.host.magwien.gv.at>
References: <m3ioi3a94e.fsf@mnc.ch>
<A737B7A37273E048B164557ADEF4A58B17DA4AC7@ntex2010a.host.magwien.gv.at>
<547EF301.3070706@2ndquadrant.com>
<A737B7A37273E048B164557ADEF4A58B17DA76B4@ntex2010a.host.magwien.gv.at>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
On 12/03/2014 07:41 PM, Albe Laurenz wrote:
> I didn't know that, thanks for the clarification.
Neither did I until I did some performance analysis work recently.
It's not always strictly true - in particular, if you're using binary
parameters, PgJDBC does a parse and describe, then waits for a response
before sending a bind. So there's an extra round trip there. Same if
you're doing a batch returning generated keys.
In general though, the v3 protocol doesn't add roundtrips.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: craig@2ndquadrant.com, laurenz.albe@wien.gv.at, gc@mnc.ch
Subject: Re: performance question: protocol v2 vs v3
In-Reply-To: <547F13B5.8080504@2ndquadrant.com>
References: <m3ioi3a94e.fsf@mnc.ch> <A737B7A37273E048B164557ADEF4A58B17DA4AC7@ntex2010a.host.magwien.gv.at> <547EF301.3070706@2ndquadrant.com> <A737B7A37273E048B164557ADEF4A58B17DA76B4@ntex2010a.host.magwien.gv.at> <547F13B5.8080504@2ndquadrant.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