Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B9DAD9FB2C1 for ; Mon, 25 Sep 2006 18:14:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 58388-07 for ; Mon, 25 Sep 2006 18:14:24 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 6D53B9FA502 for ; Mon, 25 Sep 2006 18:14:23 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (p549D2185.dip0.t-ipconnect.de [84.157.33.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 1AB34656BE for ; Mon, 25 Sep 2006 23:16:44 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 8B08E181AC330 for ; Mon, 25 Sep 2006 23:14:24 +0200 (CEST) Message-ID: <451846B0.6070906@logix-tt.com> Date: Mon, 25 Sep 2006 23:14:24 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Thunderbird 1.5.0.5 (X11/20060812) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Bind message References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.2 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200609/105 X-Sequence-Number: 15823 Hi, Kris, Kris Jurka wrote: > Sometimes it is, sometimes the purpose of using a PreparedStatement is > to avoid escaping data yourself for a plain Statement execution. There > are potential performance penalties for using a "reusable" server side > prepared statement because it plans them with generic parameters, not > those supplied in your query. For this reason we want to be sure that > people will actually be reusing these statements before switching to > this mode. I believe the default prepareThreshold is set to 5 despite > what the documentation says. I remember having read something about delaying the actual planning until the first parameterset arrives. Am I mislead by my weak memory? Thanks Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in Europe! www.ffii.org www.nosoftwarepatents.org