Re: Any disadvantages of using =ANY(ARRAY()) instead of IN?

Поиск
Список
Период
Сортировка
От geirB
Тема Re: Any disadvantages of using =ANY(ARRAY()) instead of IN?
Дата
Msg-id 45c0f1b5-ddbf-4307-9793-c51c1b8d6f80@e20g2000vbm.googlegroups.com
обсуждение исходный текст
Ответ на Any disadvantages of using =ANY(ARRAY()) instead of IN?  (Clemens Eisserer <linuxhippy@gmail.com>)
Список pgsql-performance
Ah, forgot one query:
WHERE IN is of course fast when we supply id's directly, but not when
they are wrapped as array and UNNEST'ed in query 6. (previous post
from me)

-- Test 6b: Fast. WHERE IN(explicit id list)
SELECT * FROM (
       SELECT * FROM table1
       UNION
       SELECT * FROM table1
) Q WHERE id IN
(100001,100002,100003,100004,100005,100006,100007,100008,100009,10010);

--
Geir Bostad
9.1.3(x64,win)


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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: High load average in 64-core server , no I/O wait and CPU is idle
Следующее
От: geirB
Дата:
Сообщение: Re: Any disadvantages of using =ANY(ARRAY()) instead of IN?