Re: Very long deletion time on a 200 GB database

Поиск
Список
Период
Сортировка
От ktm@rice.edu
Тема Re: Very long deletion time on a 200 GB database
Дата
Msg-id 20120223152837.GV21114@aart.rice.edu
обсуждение исходный текст
Ответ на Re: Very long deletion time on a 200 GB database  ("Reuven M. Lerner" <reuven@lerner.co.il>)
Ответы Re: Very long deletion time on a 200 GB database  (Lew <noone@lewscanon.com>)
Список pgsql-performance
On Thu, Feb 23, 2012 at 05:25:46PM +0200, Reuven M. Lerner wrote:
> >
> >What is the distribution of end_dates? It might be worth running this in
> >several steps, deleting records older than, say, 90 days, 60 days, 30 days.
>
> I've suggested something similar, but was told that we have limited
> time to execute the DELETE, and that doing it in stages might not be
> possible.
>
> Reuven
>

In cases like this, I have often found that doing the delete in smaller
pieces goes faster, sometimes much faster, than the bigger delete.

Regards,
Ken

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

Предыдущее
От: "Reuven M. Lerner"
Дата:
Сообщение: Re: Very long deletion time on a 200 GB database
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: Very long deletion time on a 200 GB database