Re: Fastest method to insert data.

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: Fastest method to insert data.
Дата
Msg-id 3CC074D2.2020301@xythos.com
обсуждение исходный текст
Ответ на Fastest method to insert data.  (Sam Varshavchik <mrsam@courier-mta.com>)
Ответы Re: Fastest method to insert data.  (Sam Varshavchik <mrsam@courier-mta.com>)
Список pgsql-jdbc
COPY will always be your best option if speed is the most important factor.

--Barry

Sam Varshavchik wrote:
>
> What would be the fastest way to insert a bunch of data (in 7.1)?
> Currently, a bunch of addBatch()es followed by executeBatch() is pretty
> fast, but not as fast as COPY TABLE via psql.  I suppose I can use a
> single executeBatch() to insert the entire table, but AFAIK addBatch()
> just buffers the SQL in memory, and I prefer to have some kind of an
> upper limit on my memory footprint.
>



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

Предыдущее
От: Sam Varshavchik
Дата:
Сообщение: Fastest method to insert data.
Следующее
От: Sam Varshavchik
Дата:
Сообщение: Re: Fastest method to insert data.