Re: problem in select

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: frank_lupo <frank_lupo(at)email(dot)it>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: problem in select
Date: 2002-09-13 16:51:42
Message-ID: 20020913095023.Y58855-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Fri, 13 Sep 2002, [utf-8] 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

See the FAQ, queries using IN (<subselect>) aren't implemented optimally,
a conversion to an EXISTS form may help.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2002-09-13 16:56:26 Re: problem in select
Previous Message king 2002-09-13 16:46:55 sum(if command