Re: Performance of request of type WHERE ... IN ( ... )

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Performance of request of type WHERE ... IN ( ... )
Дата
Msg-id web-2314793@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на Re: Performance of request of type WHERE ... IN ( ... )  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
Список pgsql-sql
Th,

> > I have performance problem of an request of type ... WHERE ... IN (
> ... ).
> > How to improve performance of this type of request when a group of
> id in the
> > 'in' is important.
> 
> Try WHERE ... EXISTS (...).

The explanation of the difference btw. IN and EXISTS is in the
PostgreSQL FAQ on the web site.

-Josh


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: index on to_char(created, 'YYYY') doesn't work
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: index on to_char(created, 'YYYY') doesn't work