Re: Very inefficient query plan with disjunction in WHERE clause

Поиск
Список
Период
Сортировка
От Віталій Тимчишин
Тема Re: Very inefficient query plan with disjunction in WHERE clause
Дата
Msg-id 331e40660906010919v479c690gc41594db8150931a@mail.gmail.com
обсуждение исходный текст
Ответ на Very inefficient query plan with disjunction in WHERE clause  (Koen Martens <pgsql@metro.cx>)
Список pgsql-performance


2009/6/1 Koen Martens <pgsql@metro.cx>

Now, when I split up the OR in two distinct queries, everything is nice and fast. Both queries run in sub-second time.

Hi.

PostgreSQL simply do not like ORs (can't use indexes in this case), so UNION/UNION ALL is your friend.

Best regards, Vitalii Tymchyshyn

 

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Using index for bitwise operations?
Следующее
От: Alan McKay
Дата:
Сообщение: Re: Best way to load test a postgresql server