Simple queries take forever to run

Поиск
Список
Период
Сортировка
От Michael Guerin
Тема Simple queries take forever to run
Дата
Msg-id 3F4BE939.8040101@rentec.com
обсуждение исходный текст
Список pgsql-novice
I was going to post this on the performance page, but I assume its
something a novice gets stuck on.

This query: select count(*) from x where id not in (select id from y);
takes 1-3 seconds on sql server and runs forever on postgresql.

Both tables have an index on id
Table x has 1200673 rows
Table y has 1282 rows

shared_buffers = 64000
effective_chache_size = 400000

any ideas???




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

Предыдущее
От: Stuart Woodward
Дата:
Сообщение: Upgrading from 7.1.2 to 7.3.3 - function may need to add explicit typecasts
Следующее
От: Juan Francisco Diaz
Дата:
Сообщение: Returning SETOF INTEGER mystery...