pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Cottenceau <gc@mnc.ch>
To: Albe Laurenz <laurenz.albe@wien.gv.at>
Cc: pgsql-jdbc\@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: performance question: protocol v2 vs v3
Date: Tue, 25 Nov 2014 11:51:53 +0100
Message-ID: <m3egsra6ye.fsf@mnc.ch> (raw)
In-Reply-To: <A737B7A37273E048B164557ADEF4A58B17DA4AC7@ntex2010a.host.magwien.gv.at>
References: <m3ioi3a94e.fsf@mnc.ch>
	<A737B7A37273E048B164557ADEF4A58B17DA4AC7@ntex2010a.host.magwien.gv.at>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Albe Laurenz <laurenz.albe 'at' wien.gv.at> writes:

> Do you you call conn.prepareStatement for each statement, or do
> you reuse the prepared statements?  In the latter case, you might see
> better performance with protocol v3.

I recreate one each time. Makes sense, thanks.

-- 
Guillaume Cottenceau


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (7+ messages)  latest in thread

Message-ID: <m3egsra6ye.fsf@mnc.ch>
Permalink:  ../m3egsra6ye.fsf@mnc.ch/
Also on:    postgresql.org/message-id/m3egsra6ye.fsf@mnc.ch

 · 

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: gc@mnc.ch, laurenz.albe@wien.gv.at
  Subject: Re: performance question: protocol v2 vs v3
  In-Reply-To: <m3egsra6ye.fsf@mnc.ch>
  References: <m3ioi3a94e.fsf@mnc.ch> <A737B7A37273E048B164557ADEF4A58B17DA4AC7@ntex2010a.host.magwien.gv.at> <m3egsra6ye.fsf@mnc.ch>

* 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