pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: andrew@pillette.com
To: Merlin Moncure <mmoncure@gmail.com>
Cc: andrew@pillette.com
Cc: okparanoid@free.fr
Cc: pgsql-performance@postgresql.org
Subject: Re: update 600000 rows
Date: Sun, 16 Dec 2007 12:45:02 -0800
Message-ID: <200712162045.lBGKj2I03112@pillette.com> (raw)

I wrote
> That's what I did at first, but later I found better performance with
> a TRIGGER on the permanent table that deletes the target of an UPDATE,
> if any, before the UPDATE. [INSERT!] That's what PG does anyway, and now I can do
> the entire UPDATE [INSERT] in one command.

It's probably obvious, but what I should have said is that now I do the INSERT in one command; I have no need of an UPDATE. So I do no UPDATEs, only INSERTs.



view thread (9+ messages)  latest in thread

Message-ID: <200712162045.lBGKj2I03112@pillette.com>
Permalink:  ../200712162045.lBGKj2I03112@pillette.com/
Also on:    postgresql.org/message-id/200712162045.lBGKj2I03112@pillette.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: andrew@pillette.com, mmoncure@gmail.com, okparanoid@free.fr
  Subject: Re: update 600000 rows
  In-Reply-To: <200712162045.lBGKj2I03112@pillette.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