Re: Hash index build patch has *worse* performance at small table sizes
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Hash index build patch has *worse* performance at small table sizes |
| Дата | |
| Msg-id | 27492.1214095076@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Hash index build patch has *worse* performance at small table sizes (Bruce Momjian <bruce@momjian.us>) |
| Список | pgsql-hackers |
Bruce Momjian <bruce@momjian.us> writes:
> Did we ever do anything about this?
Seems to be in there in CVS HEAD:
/* * If we just insert the tuples into the index in scan order, then * (assuming their hash codes are pretty
random)there will be no locality * of access to the index, and if the index is bigger than available RAM * then
we'llthrash horribly. To prevent that scenario, we can sort the * tuples by (expected) bucket number. However,
sucha sort is useless * overhead when the index does fit in RAM. We choose to sort if the * initial index size
exceedseffective_cache_size. * * NOTE: this test will need adjustment if a bucket is ever different * from one
page. */ if (num_buckets >= (uint32) effective_cache_size) buildstate.spool = _h_spoolinit(index,
num_buckets); else buildstate.spool = NULL;
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера