| От | Richard Huxton |
|---|---|
| Тема | Re: Reindex - Is this necessary after a vacuum? |
| Дата | |
| Msg-id | 435E3E3B.1000805@archonet.com обсуждение исходный текст |
| Ответ на | Reindex - Is this necessary after a vacuum? (Markus Benne <thing@m-bass.com>) |
| Список | pgsql-performance |
Markus Benne wrote: > We are reindexing frequently, and I'm wondering if > this is really necessary, given that it appears to > take an exclusive lock on the table. > > Our table in question is vacuumed every 4 minutes, and > we are reindexing after each one. > > I'm not a fan of locking this table that frequently, > even if it is only for 5 - 10 seconds depending on > load. > > The vacuum is a standard vacuum. Nightly we do a > vacuum analyze. At most I'd do a nightly reindex. And in fact, I'd probably drop the index, full vacuum, recreate index. But you only need to reindex at all if you have a specific problem with the index bloating. Are you seeing this? -- Richard Huxton Archonet Ltd
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера