Re: Simple queries take forever to run

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Simple queries take forever to run
Дата
Msg-id 20030828001119.GB63737@home.samurai.com
обсуждение исходный текст
Ответ на Simple queries take forever to run  (Michael Guerin <guerin@rentec.com>)
Список pgsql-performance
On Wed, Aug 27, 2003 at 05:40:05PM -0400, Michael Guerin wrote:
> ex. query: select * from x where id in (select id from y);
>
> There's an index on each table for id.  SQL Server takes <1s to return,
> postgresql doesn't return at all, neither does explain analyze.

This particular form of query is a known performance problem for PostgreSQL
7.3 and earlier -- the problem should hopefully be fixed in 7.4 (currently
in beta). Check the archives for more discussion on this topic.

-Neil


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Simple queries take forever to run
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Queries sometimes take 1000 times the normal time