Re: inserting multiple values in version 8.1.5

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: inserting multiple values in version 8.1.5
Date: 2007-04-03 14:33:18
Message-ID: 20070403143318.GA11693@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

am Tue, dem 03.04.2007, um 7:19:15 -0700 mailte rkmr(dot)em(at)gmail(dot)com folgendes:
> I need to do like 1000 inserts periodically from a web app. Is it better to do
> 1000 inserts or 1 insert with the all 1000 rows? Is using copy command faster
> than inserts?

You can do the massive Inserts within one transaktion, but COPY is much
faster than many Inserts. The multi-line Insert is a new feature since
8.2. I prefer COPY.

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Listmail 2007-04-03 15:01:56 BitmapScan mishaps
Previous Message Greg Sabino Mullane 2007-04-03 14:31:30 Re: inserting multiple values in version 8.1.5