| От | Paul Jones |
|---|---|
| Тема | Question about shared_buffer cache behavior |
| Дата | |
| Msg-id | 20160318202422.GA6069@cmicdo.com обсуждение исходный текст |
| Ответы |
Re: Question about shared_buffer cache behavior
Re: Question about shared_buffer cache behavior |
| Список | pgsql-general |
In Postgres 9.5.1 with a shared_buffer cache of 7Gb, a SELECT from a single table that uses an index appears to read the table into the shared_buffer cache. Then, as many times as the exact same SELECT is repeated in the same session, it runs blazingly fast and doesn't even touch the disk. All good. Now, in the *same* session, if a different SELECT from the *same* table, using the *same* index is run, it appears to read the entire table from disk again. Why is this? Is there something about the query that qualifies the contents of the share_buffer cache? Would this act differently for different kinds of indexes? PJ
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера