| От | Tom Lane |
|---|---|
| Тема | Re: external sort performance |
| Дата | |
| Msg-id | 27243.1321552520@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | external sort performance (Jon Nelson <jnelson+pgsql@jamponi.net>) |
| Список | pgsql-performance |
Jon Nelson <jnelson+pgsql@jamponi.net> writes:
> This is on PG 8.4.8 on Linux, 16GB of "real" RAM.
> Most recently, I enabled trace_sort, disabled hash aggregation[1], and
> set a large work_mem (normally very small, in this case I tried
> anything from 8MB to 256MB. I even tried 1GB and 2GB).
FWIW, I think hash aggregation is your best shot at getting reasonable
performance. Sorting 175GB of data is going to hurt no matter what.
If the grouped table amounts to 5GB, I wouldn't have expected the hash
table to be more than maybe 2-3X that size (although this does depend on
what aggregates you're running...). Letting the hash aggregation have
all your RAM might be the best answer.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера