| От | Josh Berkus |
|---|---|
| Тема | Re: ANALYZE sampling is too good |
| Дата | |
| Msg-id | 52A8EBEE.9070506@agliodbs.com обсуждение |
| Ответ на | Re: ANALYZE sampling is too good (Peter Geoghegan <pg@heroku.com>) |
| Список | pgsql-hackers |
On 12/11/2013 02:39 PM, Martijn van Oosterhout wrote: > In this discussion we've mostly used block = 1 postgresql block of 8k. > But when reading from a disk once you've read one block you can > basically read the following ones practically for free. > > So I wonder if you could make your sampling read always 16 consecutive > blocks, but then use 25-50% of the tuples. That way you get many more > tuples for the same amount of disk I/O seeks.. Yeah, that's what I meant by "tune this for the FS". We'll probably have to test a lot of different "block sizes" on different FSes before we arrive at a reasonable size, and even then I'll bet we have to offer a GUC. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера