Re: How import big amounts of data?

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: Arnau <arnaulist(at)andromeiberica(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: How import big amounts of data?
Date: 2005-12-29 11:39:06
Message-ID: Pine.LNX.4.44.0512291237340.14848-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, 29 Dec 2005, Arnau wrote:

> Which is the best way to import data to tables? I have to import
> 90000 rows into a column and doing it as inserts takes ages. Would be
> faster with copy? is there any other alternative to insert/copy?

Wrap the inserts inside a BEGIN/COMMIT block and it will be a lot faster.
Copy is even faster, but for just 90000 rows I wouldn't bother.

--
/Dennis Björklund

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Ron 2005-12-29 14:20:28 Re: How import big amounts of data?
Previous Message Steinar H. Gunderson 2005-12-29 10:50:49 Re: How import big amounts of data?