Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D6D9A6323A6 for ; Fri, 1 May 2009 13:13:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 51043-02 for ; Fri, 1 May 2009 13:13:41 -0300 (ADT) X-Greylist: delayed 00:26:52.008381 by SQLgrey-1.7.6 Received: from mail-gx0-f167.google.com (mail-gx0-f167.google.com [209.85.217.167]) by mail.postgresql.org (Postfix) with ESMTP id 833A763217D for ; Fri, 1 May 2009 13:13:41 -0300 (ADT) Received: by gxk11 with SMTP id 11so967280gxk.19 for ; Fri, 01 May 2009 09:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=WHZzS1vTmXEgKUTJUqBjPiNPZ850/GTw6JaWOh6XsgI=; b=GQ9eLwdFCSuQVjzbyJ7Xwn7HdW4cYhuZLjkKf/I4GHj6/oAGDSn7AWhvuSv6uweqcd h8j4Pe7omkKUTOpRWEVXPbghxOdZFdq0seZIUVTuL9/YwxHHGy1bB9uahV2AiH17xmoy 3OTGQVNZM1ZVbP5a9HI/FG+On4U4JYfNv3BU4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=D9oF9GvE/IfHT/PlwX3hX6mc1B+fwdPWDg55Kkf6uwUJ78mGt7sEFw8hEQooouVDEL a5eX8MvBFc2N1d/yk/xsniHuWU2kVBfH9g5xwX48FnMK+W+JDZjOjaG+wp/LRwED5b3/ HXgzFIj1SdLEUkN+z7/iLDMoYqUHIKxdgwqzk= MIME-Version: 1.0 Received: by 10.90.68.12 with SMTP id q12mr1307789aga.70.1241192441492; Fri, 01 May 2009 08:40:41 -0700 (PDT) In-Reply-To: <02437794-A78D-449C-843F-B823195F9623@noopsis.fr> References: <5C2E1645-73B6-4509-96CD-FA77869516AB@noopsis.fr> <49F71EDD.2070200@opencloud.com> <02437794-A78D-449C-843F-B823195F9623@noopsis.fr> Date: Fri, 1 May 2009 11:40:41 -0400 X-Google-Sender-Auth: 61a2118811204f1c Message-ID: <491f66a50905010840m7f4745e5xd9a588a198a63f03@mail.gmail.com> Subject: Re: Very strange performance decrease when reusing a PreparedStatement From: Dave Cramer To: =?ISO-8859-1?Q?Fr=E9d=E9rik_Bilhaut?= Cc: Oliver Jowett , pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=00163628396092b4f20468dba2ff X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200905/4 X-Sequence-Number: 19554 --00163628396092b4f20468dba2ff Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Make sure you use a prepared statement in psql to do the explain analyze. explain analyze select .... is not the same as prepare foo as select ... explain analyze execute ... Dave > > > > > > > > > > > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > --00163628396092b4f20468dba2ff Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit

Make sure you use a prepared statement in psql to do the explain analyze.

explain analyze select ....

is not the same as

prepare foo as select ...
explain analyze execute ...

Dave











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

--00163628396092b4f20468dba2ff--