Re: ORDER BY and LIMIT not propagated on inherited

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ORDER BY and LIMIT not propagated on inherited
Дата
Msg-id 14074.1125672054@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ORDER BY and LIMIT not propagated on inherited  (Matteo Beccati <php@beccati.com>)
Ответы Re: ORDER BY and LIMIT not propagated on inherited
Список pgsql-performance
Matteo Beccati <php@beccati.com> writes:
> The correct strategy IMHO would
> be applying the order by and limit for each child table (which results
> in an index scan, if possible), appending, then finally sorting a bunch
> of rows, and limiting again.

This would be a win in some cases, and in many others a loss (ie, wasted
sort steps).  The hard part is determining when to apply it.

            regards, tom lane

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Advise about how to delete entries
Следующее
От: Matteo Beccati
Дата:
Сообщение: Re: ORDER BY and LIMIT not propagated on inherited