pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Batch process
Date: Wed, 20 Jul 2022 09:30:42 -0600
Message-ID: <a9efd93b-6662-eb94-385e-191022f8e153@gmail.com> (raw)
In-Reply-To: <CAJWX+ENuYcKuBo8X122wAKUoS1BCiYC8fprjxYgK54fEo09Hmg@mail.gmail.com>
References: <CAJWX+ENJm8tsZ2y9z075w-4Vbtv4GQaLOQpVb8b-VYiOea1oPw@mail.gmail.com>
	<375897a0-fbbb-8712-8164-8fbd3cab074a@aklaver.com>
	<CAJWX+ENuYcKuBo8X122wAKUoS1BCiYC8fprjxYgK54fEo09Hmg@mail.gmail.com>

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

view thread (11+ messages)  latest in thread

Message-ID: <a9efd93b-6662-eb94-385e-191022f8e153@gmail.com>
Permalink:  ../a9efd93b-6662-eb94-385e-191022f8e153@gmail.com/
Also on:    postgresql.org/message-id/a9efd93b-6662-eb94-385e-191022f8e153@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robjsargent@gmail.com
  Subject: Re: Batch process
  In-Reply-To: <a9efd93b-6662-eb94-385e-191022f8e153@gmail.com>
  References: <CAJWX+ENJm8tsZ2y9z075w-4Vbtv4GQaLOQpVb8b-VYiOea1oPw@mail.gmail.com> <375897a0-fbbb-8712-8164-8fbd3cab074a@aklaver.com> <CAJWX+ENuYcKuBo8X122wAKUoS1BCiYC8fprjxYgK54fEo09Hmg@mail.gmail.com> <a9efd93b-6662-eb94-385e-191022f8e153@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox