Re: efficient query help

Поиск
Список
Период
Сортировка
От Clinton Adams
Тема Re: efficient query help
Дата
Msg-id 200204221723.58261.clinton@vote-smart.org
обсуждение исходный текст
Ответ на efficient query help  (Laurette Cisneros <laurette@nextbus.com>)
Список pgsql-sql
> I have crafted the following query which returns the results I want but
> runs extremely slow (I'm sure it's the "not in" part that does it) since
> the tables can contain large amounts of data.
>
> Is there a better, more efficient way to build this query?

Why not try NOT EXISTS? I find that NOT IN bogs down on even simple queries.


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

Предыдущее
От: Laurette Cisneros
Дата:
Сообщение: efficient query help
Следующее
От: Ian Morgan
Дата:
Сообщение: How to discover foreign keys (without pulling hair out)