Re: Batch process

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Batch process
Date: 2022-07-20 15:30:42
Message-ID: a9efd93b-6662-eb94-385e-191022f8e153@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/20/22 09:26, Rama Krishnan wrote:
> Hi Adrian,
>
> Thanks for the update.
>
>
> Is it possible to achieve 10000 records deletion on every iteration
> because my original table contains 5M records during the deletion
> process it consumes more cpu and resources.

See here
<https://www.postgresql.org/docs/current/functions-datetime.html> for
date manipulation functions.  you can delete by month or week, which
ever makes it fit your hardware

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2022-07-20 15:36:43 Re: postgis
Previous Message Rama Krishnan 2022-07-20 15:26:26 Re: Batch process