Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XtDj5-0002Uv-Ui for pgsql-jdbc@arkaria.postgresql.org; Tue, 25 Nov 2014 10:52:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XtDj5-0007zn-7V for pgsql-jdbc@arkaria.postgresql.org; Tue, 25 Nov 2014 10:52:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XtDj4-0007zh-J0 for pgsql-jdbc@postgresql.org; Tue, 25 Nov 2014 10:52:06 +0000 Received: from 62-2-77-205.static.cablecom.ch ([62.2.77.205] helo=mail.op.lan) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XtDix-0000bf-Ec for pgsql-jdbc@postgresql.org; Tue, 25 Nov 2014 10:52:04 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.op.lan (Postfix) with ESMTP id 4CCD4188365; Tue, 25 Nov 2014 11:51:54 +0100 (CET) X-Virus-Scanned: amavisd-new at example.com Received: from mail.op.lan ([127.0.0.1]) by localhost (mail.op.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jUDhGNutmft9; Tue, 25 Nov 2014 11:51:54 +0100 (CET) Received: from gc.localdomain (62-2-77-204.static.cablecom.ch [62.2.77.204]) by mail.op.lan (Postfix) with ESMTP id 2B2201881C1; Tue, 25 Nov 2014 11:51:54 +0100 (CET) Received: by gc.localdomain (Postfix, from userid 500) id A74A218DBC1; Tue, 25 Nov 2014 11:51:53 +0100 (CET) To: Albe Laurenz Cc: "pgsql-jdbc\@postgresql.org" Subject: Re: performance question: protocol v2 vs v3 References: From: Guillaume Cottenceau X-Hashcash: 1:21:141125:laurenz.albe@wien.gv.at::wE+CO57/k1XrRuYZ:000000000000000000000000000000000000001OBI X-Hashcash: 1:21:141125:pgsql-jdbc@postgresql.org::MXpwM6Hy3LPKQsOQ:0000000000000000000000000000000000009a2i Date: Tue, 25 Nov 2014 11:51:53 +0100 In-Reply-To: (Albe Laurenz's message of "Tue\, 25 Nov 2014 10\:45\:12 +0000") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pg-Spam-Score: -0.2 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Albe Laurenz 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