Re: sorting problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: sorting problem
Дата
Msg-id 21540.1103308172@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: sorting problem  (Greg Stark <gsstark@mit.edu>)
Ответы Re: sorting problem
Список pgsql-general
Greg Stark <gsstark@mit.edu> writes:
> Bruno Wolff III <bruno@wolff.to> writes:
>> Using an index to do an order by is an order N operation.

> No, using an index to do an order by is actually still n*log(n). You have to
> traverse all the parent pages in the binary tree of the index as well.

Only if you searched afresh from the root for each key, which an
indexscan is not going to do.

            regards, tom lane

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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Problem with pl/perl in postgresql 8.0rc1
Следующее
От: mjmayfield@pepco.com
Дата:
Сообщение: unsubscribe pgsql-general