Re: Degraded performance during table rewrite

Поиск
Список
Период
Сортировка
От Mohamed Wael Khobalatte
Тема Re: Degraded performance during table rewrite
Дата
Msg-id CABZeWdzVmHWWSfqzwmY5pSv2jU=41MRo0O=K9CfHKf94Nb3GdQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Degraded performance during table rewrite  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Degraded performance during table rewrite
Список pgsql-general
 Another idea that might conceivably be useful to you on 9.6 is to
reorganize the bulk deletions so that most of them aren't at the endpoint
of the live id range.  If you made it so that the extremal values are
deleted last, you'd never hit this behavior.

                        regards, tom lane

Hm, I am not sure I understood your suggestion. We'd still need to find a range of ids to delete, and the order by asc has the nice property that it moves old records first, which helps tables with a lot of activity on recently created tuples (and I suppose an ordering in the other direction would suffer from the same problem). 

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Degraded performance during table rewrite
Следующее
От: Mohamed Wael Khobalatte
Дата:
Сообщение: Re: Degraded performance during table rewrite