| От | Greg Stark |
|---|---|
| Тема | Re: sorting problem |
| Дата | |
| Msg-id | 87mzwckfyp.fsf@stark.xeocode.com обсуждение исходный текст |
| Ответ на | Re: sorting problem (Bruno Wolff III <bruno@wolff.to>) |
| Ответы |
Re: sorting problem
|
| Список | pgsql-general |
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. This only goes to show how small the log(n) component of the order is. It's easily dwarfed by large constants such as the difference in i/o efficiency from non-contiguous reads. -- greg
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера