From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | "frank_lupo" <frank_lupo(at)email(dot)it>, "pgsql-general" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: problem in select |
Date: | 2002-09-13 16:56:26 |
Message-ID: | 200209131756.26359.dev@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Friday 13 Sep 2002 5:32 pm, frank_lupo wrote:
> This selection is more fast in ingres vs postgres
> Ingres 6.4 0.04 sec
> Postgres 7.2 0.42 sec
> select titolo,id,anno from ircalend where anno=2002 and id in(select
> distinct(idcalend) from ircalend_3) order by anno,titolo
because ?
Who knows? If you want people to help with this, you'll need to give them more
information. Things like the output of EXPLAIN SELECT ... and some details on
how many records are in each table would be a good start.
So, given that we don't have that I'd suggest looking to see if you can't
replace IN with EXISTS since PostgreSQL isn't very clever about IN. See mail
archives and manual for details. But look at the EXPLAIN readout first.
- Richard Huxton
From | Date | Subject | |
---|---|---|---|
Next Message | Nigel J. Andrews | 2002-09-13 17:01:47 | Re: problem in select |
Previous Message | Stephan Szabo | 2002-09-13 16:51:42 | Re: problem in select |