pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: luis.roberto@siscobra.com.br
To: Jason Ralph <jralph@affinitysolutions.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: UPDATE on 20 Million Records Transaction or not?
Date: Tue, 23 Jun 2020 10:50:12 -0300 (BRT)
Message-ID: <552644140.73691855.1592920212865.JavaMail.zimbra@siscobra.com.br> (raw)
In-Reply-To: <BN7PR04MB382639B391AC54E7103B96F6D0940@BN7PR04MB3826.namprd04.prod.outlook.com>
References: <BN7PR04MB382623164C18461A1DDB6242D0940@BN7PR04MB3826.namprd04.prod.outlook.com>
	<9c21c0a0-0897-125d-b27e-960bc357b0ef@aklaver.com>
	<BN7PR04MB382639B391AC54E7103B96F6D0940@BN7PR04MB3826.namprd04.prod.outlook.com>



Thanks Adrian,
> You could break it down into multiple transactions if there is way to specify ranges of records.
Say I couldn't break it up, would it be faster in or out of the transaction?


It depends whether you have concurrent transactions using the table. If you do, I think it would be better to split the update between smaller transactions.





view thread (12+ messages)  latest in thread

Message-ID: <552644140.73691855.1592920212865.JavaMail.zimbra@siscobra.com.br>
Permalink:  ../552644140.73691855.1592920212865.JavaMail.zimbra@siscobra.com.br/
Also on:    postgresql.org/message-id/552644140.73691855.1592920212865.JavaMail.zimbra@siscobra.com.br

 · 

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: luis.roberto@siscobra.com.br, jralph@affinitysolutions.com, adrian.klaver@aklaver.com
  Subject: Re: UPDATE on 20 Million Records Transaction or not?
  In-Reply-To: <552644140.73691855.1592920212865.JavaMail.zimbra@siscobra.com.br>
  References: <BN7PR04MB382623164C18461A1DDB6242D0940@BN7PR04MB3826.namprd04.prod.outlook.com> <9c21c0a0-0897-125d-b27e-960bc357b0ef@aklaver.com> <BN7PR04MB382639B391AC54E7103B96F6D0940@BN7PR04MB3826.namprd04.prod.outlook.com> <552644140.73691855.1592920212865.JavaMail.zimbra@siscobra.com.br>

* 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