pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PFC <lists@peufeu.com>
To: ashah <ashah@opuspro.com>
To: pgsql <pgsql-performance@postgresql.org>
Subject: Re: Massive Inserts Strategies
Date: Wed, 22 Mar 2006 17:07:52 +0100
Message-ID: <op.s6tofevzcigqcu@apollo13> (raw)
In-Reply-To: <200603221032.10207.ashah@opuspro.com>
References: <200603221032.10207.ashah@opuspro.com>


	For both cases, you could COPY your file into a temporary table and do a  
big JOIN with your existing table, one for inserting new rows, and one for  
updating existing rows.
	Doing a large bulk query is a lot more efficient than doing a lot of  
selects. Vacuum afterwards, and you'll be fine.



view thread (6+ messages)  latest in thread

Message-ID: <op.s6tofevzcigqcu@apollo13>
Permalink:  ../op.s6tofevzcigqcu@apollo13/
Also on:    postgresql.org/message-id/op.s6tofevzcigqcu@apollo13

 · 

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: lists@peufeu.com, ashah@opuspro.com
  Subject: Re: Massive Inserts Strategies
  In-Reply-To: <op.s6tofevzcigqcu@apollo13>

* 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