Re: Very long deletion time on a 200 GB database - Mailing list pgsql-performance

From ktm@rice.edu
Subject Re: Very long deletion time on a 200 GB database
Date
Msg-id 20120223152837.GV21114@aart.rice.edu
Whole thread Raw
In response to Re: Very long deletion time on a 200 GB database  ("Reuven M. Lerner" <reuven@lerner.co.il>)
Responses Re: Very long deletion time on a 200 GB database
List 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 by date:

Previous
From: "Reuven M. Lerner"
Date:
Subject: Re: Very long deletion time on a 200 GB database
Next
From: Steve Crawford
Date:
Subject: Re: Very long deletion time on a 200 GB database