| От | Tom Lane |
|---|---|
| Тема | Re: Threaded Sorting |
| Дата | |
| Msg-id | 20100.1033739157@sss.pgh.pa.us обсуждение |
| Ответ на | Threaded Sorting (Hans-Jürgen Schönig <postgres@cybertec.at>) |
| Список | pgsql-hackers |
Hans-Jürgen Schönig <postgres@cybertec.at> writes:
> Did anybody think about threaded sorting so far?
> Assume an SMP machine. In the case of building an index or in the case
> of sorting a lot of data there is just one backend working. Therefore
> just one CPU is used.
> What about starting a thread for every temporary file being created?
> This way CREATE INDEX could use many CPUs.
In my experience, once you have enough data to force a temp file to be
used, the sort algorithm is I/O bound anyway. Throwing more CPUs at it
won't help much.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера