| От | Bruce Momjian |
|---|---|
| Тема | Re: [HACKERS] \dt and disk access |
| Дата | |
| Msg-id | e5898047ff19390346031fc6df90cf11 обсуждение исходный текст |
| Ответ на | [HACKERS] \dt and disk access (Bruce Momjian <maillist@candle.pha.pa.us>) |
| Список | pgsql-hackers |
> >From what I remember, the quick sort algorithm works just as fast on > sorted data as on unsorted data. In other words, the algorithm does not > take advantage of the fact that the data is sorted. > > On the other hand, if you go to something like bubble sort, it will > work faster than quick sort if the data is sorted and you are adding one > more item, but on unsorted data it takes an enormously longer length of > time to sort a large list. > One thing I am going to look into is replacing the btree-build in the current psort with a qsort of HeapTuple pointers. - -- Bruce Momjian maillist@candle.pha.pa.us ------------------------------ End of hackers-digest V1 #398 *****************************
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера