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.
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