Re: [HACKERS] Idea for speeding up uncorrelated subqueries

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Idea for speeding up uncorrelated subqueries
Дата
Msg-id 199908060511.BAA26768@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Idea for speeding up uncorrelated subqueries  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Bruce Momjian <maillist@candle.pha.pa.us> writes:
> > Isn't it something that takes only a few hours to implement.  We can't
> > keep telling people to us EXISTS, especially because most SQL people
> > think correlated queries are slower that non-correlated ones.  Can we
> > just on-the-fly rewrite the query to use exists?
> 
> I was just about to suggest exactly that.  The "IN (subselect)"
> notation seems to be a lot more intuitive --- at least, people
> keep coming up with it --- so why not rewrite it to the EXISTS
> form, if we can handle that more efficiently?

Yes, we have the nice subselect feature.  I just hate to see it not
completely finished, performance-wise.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Idea for speeding up uncorrelated subqueries
Следующее
От: "Ansley, Michael"
Дата:
Сообщение: RE: [HACKERS] Idea for speeding up uncorrelated subqueries