Re: many 'OR' in WHERE-condition

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: many 'OR' in WHERE-condition
Дата
Msg-id 46289E10.9060302@archonet.com
обсуждение исходный текст
Ответ на many 'OR' in WHERE-condition  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Ответы Re: many 'OR' in WHERE-condition
Список pgsql-sql
A. Kretschmer wrote:
> in a SELECT with a condition 'WHERE foo IN (1,2,3,4,...)' with a large
...
> But if the list increase the planner choose an seq-scan. The amount of
> values in the list is about 200 and the table has about 250.000 rows.
> 
> How can we avoid the seq-scan?

Are you sure you'd want to? What plan have you found to be faster with 
200 tests?

--   Richard Huxton  Archonet Ltd


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

Предыдущее
От: Dmitry Turin
Дата:
Сообщение: Re: We all are looped on Internet: request + transport = invariant
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: We all are looped on Internet: request + transport = invariant