| От | Joe Conway |
|---|---|
| Тема | Re: NOT IN doesn't use index? (fwd) |
| Дата | |
| Msg-id | 3EB40BCF.9010203@joeconway.com обсуждение исходный текст |
| Ответ на | Re: NOT IN doesn't use index? (fwd) (Becky Neville <rebecca.neville@yale.edu>) |
| Ответы |
Re: NOT IN doesn't use index? (fwd)
Re: NOT IN doesn't use index? (fwd) |
| Список | pgsql-performance |
Becky Neville wrote: > Here is the EXPLAIN output from the two queries. The first is the one > that uses WHERE field NOT IN ( 'a','b' etc ). The second is the (much Unless you are working with Postgres 7.4devel (i.e. cvs HEAD), the IN construct is notoriously slow in Postgres. In cvs it is vastly improved. Also, as I mentioned in the other reply, send in "EXPLAIN ANALYZE" results instead of "EXPLAIN" (and make sure you run "VACUUM ANALYZE" first). Joe
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера