Re: Slow Queries with OR's?

Поиск
Список
Период
Сортировка
От Shridhar Daithankar
Тема Re: Slow Queries with OR's?
Дата
Msg-id 200304291516.09328.shridhar_daithankar@nospam.persistent.co.in
обсуждение исходный текст
Ответ на Slow Queries with OR's?  ("Mad Hatter" <mad_hatter_@hotmail.com>)
Список pgsql-general
On Tuesday 29 April 2003 14:31, Mad Hatter wrote:
> Why does using IN (or OR) give such a performance hit?
> Is there any way I can resolve this, it seem odd to be forced to UNION
> everything, and may not always be practicle to do so. It certianly makes
> the query text much longer!

Try exists instead on in. It is known to be faster..

HTH

 Shridhar


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

Предыдущее
От: Mark Kirkwood
Дата:
Сообщение: Re: Solaris
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: adding times togeather