From: | "frank_lupo" <frank_lupo(at)email(dot)it> |
---|---|
To: | sszabo(at)megazone23(dot)bigpanda(dot)com |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: query slow problem |
Date: | 2002-07-29 16:13:13 |
Message-ID: | H00QE1$I01haKcNFANMKp4encvwuqwK_F3tEjBV94VVCs8qkAVBW@email.it |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>
> On Mon, 29 Jul 2002, frank_lupo wrote:
>
> > select id,de2 from irtab where id in (select distinct(ruolofunz)
from
> > irelbtes_1 where entpian=118331)\g
>
> In optimizes poorly currently in postgres, so you're generally better
> off converting to EXISTS or subselect in FROM. Something like
> (untested):
>
> select id, de2 from irtabl where exists (select 1 from
> irelbtes_1 where entpian=118331 and irtabl.id=ruolofunz)
>
> or
>
> select id, de2 from irtabl, (select distinct(ruolofunz) as r from
> irelbtes_1 where entpian=118331) as i
> where i.r=irtabl.id;
>
>
>
>
>
My problem is not resolved.
Thank
Bye !!
Frank Lupo (Wolf) !!
--
Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f
Sponsor:
Paura delle Eurobanconote false? Clicca qui
Clicca qui: http://adv2.email.it/cgi-bin/foclick.cgi?mid=374&d=29-7
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2002-07-29 16:23:43 | Re: query slow problem |
Previous Message | Vivek Khera | 2002-07-29 16:04:44 | Re: OSCON 2002 Slides and Thoughts |