why postgresql define NTUP_PER_BUCKET as 10, not other numbers smaller
В списке pgsql-hackers по дате отправления:
| От | b8flowerfire |
|---|---|
| Тема | why postgresql define NTUP_PER_BUCKET as 10, not other numbers smaller |
| Дата | |
| Msg-id | 1402301184854-5806472.post@n5.nabble.com обсуждение |
| Ответы |
Re: why postgresql define NTUP_PER_BUCKET as 10, not other
numbers smaller
|
| Список | pgsql-hackers |
When I read the source code about the hashjoin, I was very confused that the postgresql define the NTUP_PER_BUCKET value as 10. Since this value is used to estimate the tuple count in one bucket, is it better if we have a smaller value? I have not done some experiments, but it seems that we could archive less hash collisions and better performance if we decrease the value. So could anyone explain to me that why we define NTUP_PER_BUCKET as 10? If there exists a specified situation that we would get worse performance or some troubles if set NTUP_PER_BUCKET to 1 or 2? Thanks very much. -- View this message in context: http://postgresql.1045698.n5.nabble.com/why-postgresql-define-NTUP-PER-BUCKET-as-10-not-other-numbers-smaller-tp5806472.html Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера