Re: How import big amounts of data?

Поиск
Список
Период
Сортировка
От Dennis Bjorklund
Тема Re: How import big amounts of data?
Дата
Msg-id Pine.LNX.4.44.0512291237340.14848-100000@zigo.dhs.org
обсуждение исходный текст
Ответ на How import big amounts of data?  (Arnau <arnaulist@andromeiberica.com>)
Список 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


В списке pgsql-performance по дате отправления:

Предыдущее
От: "Steinar H. Gunderson"
Дата:
Сообщение: Re: How import big amounts of data?
Следующее
От: Ron
Дата:
Сообщение: Re: How import big amounts of data?