Re: optimize query with a maximum(date) extraction

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: optimize query with a maximum(date) extraction
Дата
Msg-id 13389.1189005818@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: optimize query with a maximum(date) extraction  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-performance
Gregory Stark <stark@enterprisedb.com> writes:
> You can simulate such a plan with the subqueries I described but
> there's a bit more overhead than necessary and you need a reasonably
> efficient source of the distinct ids.

Yeah, that seems like the $64 question.  If you have no better way of
finding out the set of ID values than a seqscan, then there's no point
in trying to optimize the min/max accumulation ...

            regards, tom lane

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

Предыдущее
От: "Carlo Stonebanks"
Дата:
Сообщение: Re: Performance on 8CPU's and 32GB of RAM
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Performance on 8CPU's and 32GB of RAM