pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Leo Mannhart <leo.mannhart@beecom.ch>
To: Carlo Stonebanks <stonec.register@sympatico.ca>
Cc: pgsql-performance@postgresql.org
Subject: Re: Massive table (500M rows) update nightmare
Date: Thu, 07 Jan 2010 09:18:54 -0600
Message-ID: <4B45A6FE020000250002DEBC@gw.wicourts.gov> (raw)
In-Reply-To: <4B45DE4C.4050606@beecom.ch>
References: <hi41os$eiv$1@news.hub.org>
	<4B45DE4C.4050606@beecom.ch>

Leo Mannhart <leo.mannhart@beecom.ch> wrote:
 
> You could also try to just update the whole table in one go, it is
> probably faster than you expect.
 
That would, of course, bloat the table and indexes horribly.  One
advantage of the incremental approach is that there is a chance for
autovacuum or scheduled vacuums to make space available for re-use
by subsequent updates.
 
-Kevin



view thread (30+ messages)  latest in thread

Message-ID: <4B45A6FE020000250002DEBC@gw.wicourts.gov>
Permalink:  ../4B45A6FE020000250002DEBC@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4B45A6FE020000250002DEBC@gw.wicourts.gov

 · 

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-performance@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, leo.mannhart@beecom.ch, stonec.register@sympatico.ca
  Subject: Re: Massive table (500M rows) update nightmare
  In-Reply-To: <4B45A6FE020000250002DEBC@gw.wicourts.gov>
  References: <hi41os$eiv$1@news.hub.org> <4B45DE4C.4050606@beecom.ch> <4B45A6FE020000250002DEBC@gw.wicourts.gov>

* 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