Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group