Re: somewhat slow query with subselect

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: somewhat slow query with subselect
Дата
Msg-id 22991.1251219125@sss.pgh.pa.us
обсуждение исходный текст
Ответ на somewhat slow query with subselect  (Marcus Engene <mengpg2@engene.se>)
Ответы Re: somewhat slow query with subselect
Список pgsql-general
Marcus Engene <mengpg2@engene.se> writes:
> ... In a case with some 5000 rows belonging to owner 123, this select really
> takes a long time. Way longer than without the subselect and order by
> filelength. I agree that with the subselect it would take some extra
> juice, but in my mind it would do some hash in memory which wouldn't be
> too slow to lookup in.

8.4 can turn EXISTS subqueries into hash joins, but previous releases
won't...

            regards, tom lane

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

Предыдущее
От: Guy Helmer
Дата:
Сообщение: Re: Invalid memory alloc request
Следующее
От: james bardin
Дата:
Сообщение: Re: warm standby and reciprocating failover