Re: NOT IN doesn't use index? (fwd)

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: NOT IN doesn't use index? (fwd)
Дата
Msg-id 200305031134.40508.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: NOT IN doesn't use index? (fwd)  (Becky Neville <rebecca.neville@yale.edu>)
Список pgsql-performance
Becky,

> 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
> faster) one
> that uses WHERE NOT (field = 'a' and field = 'b' etc).

We still can't help you if you're not posting your actual queries.  We have no
idea what's in query3.sql.    We're not clairvoyant, y'know.

--
Josh Berkus
Aglio Database Solutions
San Francisco


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: why is the db so slow?
Следующее
От: Joe Conway
Дата:
Сообщение: Re: NOT IN doesn't use index? (fwd)