Re: Question about subselect/IN performance

Поиск
Список
Период
Сортировка
От T.H.
Тема Re: Question about subselect/IN performance
Дата
Msg-id id412b$1le5$1@news.hub.org
обсуждение исходный текст
Ответ на Re: Question about subselect/IN performance  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: Question about subselect/IN performance  (bricklen <bricklen@gmail.com>)
Список pgsql-performance
On 11/30/10 5:54 PM, Kevin Grittner wrote:
> "T.H."<calinet6@gmail.com>  wrote:
>
>> Also, are there any better ways you can think of doing such an IN
>> query, using non-subselect means that might be more efficient?
>
> Have you tried the EXISTS predicate?
>
> -Kevin
>

Just looking into it now, thanks for the suggestion. Is there a reason
that EXISTS is generally faster than IN for this sort of query?

-Tristan

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

Предыдущее
От: Mario Splivalo
Дата:
Сообщение: Re: SELECT INTO large FKyed table is slow
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Re: SELECT INTO large FKyed table is slow