Re: Query question

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Query question
Дата
Msg-id 3FB59F12.2090704@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Query question  (Neil Conway <neilc@samurai.com>)
Список pgsql-performance
>>The only thing you're adding to the query is a second SORT step, so it
>>shouldn't require any more time/memory than the query's first SORT
>>did.
>
>
> Interesting -- I wonder if it would be possible for the optimizer to
> detect this and avoid the redundant inner sort ... (/me muses to
> himself)

That's somethign I've wondered myself as well.  Also - I wonder if the
optimiser could be made smart enough to push down the outer LIMIT and
OFFSET clauses into the subquery.

Chris



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

Предыдущее
От: Slavisa Garic
Дата:
Сообщение: Re: INSERT extremely slow with large data sets (fwd)
Следующее
От: Dennis Bjorklund
Дата:
Сообщение: Re: Help with count(*)