pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Frédérik Bilhaut <frederik.bilhaut@noopsis.fr>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Very strange performance decrease when reusing a PreparedStatement
Date: Fri, 1 May 2009 11:40:41 -0400
Message-ID: <491f66a50905010840m7f4745e5xd9a588a198a63f03@mail.gmail.com> (raw)
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>

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
>

view thread (26+ messages)  latest in thread

Message-ID: <491f66a50905010840m7f4745e5xd9a588a198a63f03@mail.gmail.com>
Permalink:  ../491f66a50905010840m7f4745e5xd9a588a198a63f03@mail.gmail.com/
Also on:    postgresql.org/message-id/491f66a50905010840m7f4745e5xd9a588a198a63f03@mail.gmail.com

 · 

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: pg@fastcrypt.com, frederik.bilhaut@noopsis.fr, oliver@opencloud.com
  Subject: Re: Very strange performance decrease when reusing a PreparedStatement
  In-Reply-To: <491f66a50905010840m7f4745e5xd9a588a198a63f03@mail.gmail.com>
  References: <5C2E1645-73B6-4509-96CD-FA77869516AB@noopsis.fr> <49F71EDD.2070200@opencloud.com> <02437794-A78D-449C-843F-B823195F9623@noopsis.fr> <491f66a50905010840m7f4745e5xd9a588a198a63f03@mail.gmail.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