Re: Highly obscure and erratic - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Highly obscure and erratic
Date
Msg-id 20020618154806.U66411-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: Highly obscure and erratic  (Varun Kacholia <varunk@cse.iitb.ac.in>)
Responses Re: Highly obscure and erratic
List pgsql-general
On Wed, 19 Jun 2002, Varun Kacholia wrote:

>
>
> > > hi,
> > >  I cannot get what causes the difference in the execution of these 2 commands
> > > 1. SELECT * FROM dbmedia WHERE ID IN ((SELECT id FROM wdmedia WHERE word = 'whatever') )  LIMIT 20;
> > > 2. SELECT * FROM dbmedia WHERE ID IN (1234,2345,1242,1256,1245,1567,2222,22,345,234,567,456,35,56) ;
> >
> > The former is not very well optimized (see the FAQ for suggestions on
> > using EXISTS instead).
>  hi ,
>   Had a look at that..
>   but still it is toooo slow :(
>   when is it intended to be fixed up??

What does explain show for the exists version?


pgsql-general by date:

Previous
From: Varun Kacholia
Date:
Subject: Re: Highly obscure and erratic
Next
From: Jorge Sarmiento
Date:
Subject: pl/pgsql question