| От | John A Meinel |
|---|---|
| Тема | Re: read block size |
| Дата | |
| Msg-id | 42C182BF.1050808@arbash-meinel.com обсуждение |
| Ответ на | read block size (Michael Stone <mstone+postgres@mathom.us>) |
| Ответы |
Re: read block size
|
| Список | pgsql-performance |
Michael Stone wrote: > Is it possible to tweak the size of a block that postgres tries to read > when doing a sequential scan? It looks like it reads in fairly small > blocks, and I'd expect a fairly significant boost in i/o performance > when doing a large (multi-gig) sequential scan if larger blocks were > used. > > Mike Stone I believe postgres reads in one database page at a time, which defaults to 8k IIRC. If you want bigger, you could recompile and set the default page size to something else. There has been discussion about changing the reading/writing code to be able to handle multiple pages at once, (using something like vread()) but I don't know that it has been implemented. Also, this would hurt cases where you can terminate as sequential scan early. And if the OS is doing it's job right, it will already do some read-ahead for you. John =:->
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера