| От | Douglas McNaught |
|---|---|
| Тема | Re: SELECT count(*) Generating Lots of Write Activity |
| Дата | |
| Msg-id | m2y87lkren.fsf@Douglas-McNaughts-Powerbook.local обсуждение исходный текст |
| Ответ на | SELECT count(*) Generating Lots of Write Activity ("Logan Bowers" <logan@zillow.com>) |
| Список | pgsql-general |
"Logan Bowers" <logan@zillow.com> writes: > I'm potentially having a strange performance problem. I have a BIG table: > ~100M, ~1KB rows. I do a SELECT count(*) from it (I know it will be slow) > and as I watch procinfo on my DB server I see a huge amount of write > activity. Thus, The only thing I can think of is that you have a lot of dirty page buffers (either in PG's shared buffer area or the kernel's page cache) due to prior write activity, and they are getting written out to make room for the sequential scan's incoming buffers. > 3) Are my tools lying to me (i.e. procinfo is wrong)? Perhaps; if you're on Linux try 'vmstat' instead of procinfo as a check. -Doug
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера