| От | Greg Stark |
|---|---|
| Тема | Re: Improving N-Distinct estimation by ANALYZE |
| Дата | |
| Msg-id | 87fynx1ifd.fsf@stark.xeocode.com обсуждение исходный текст |
| Ответ на | Re: Improving N-Distinct estimation by ANALYZE (Simon Riggs <simon@2ndquadrant.com>) |
| Ответы |
Re: Improving N-Distinct estimation by ANALYZE
|
| Список | pgsql-hackers |
> > These numbers don't make much sense to me. It seems like 5% is about as slow > > as reading the whole file which is even worse than I expected. I thought I was > > being a bit pessimistic to think reading 5% would be as slow as reading 20% of > > the table. I have a theory. My test program, like Postgres, is reading in 8k chunks. Perhaps that's fooling Linux into thinking it's a sequential read and reading in 32k chunks internally. That would effectively make a 25% scan a full table scan. And a 5% scan would be a 20% scan which is about where I would have expected the breakeven point to be. -- greg
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера