Re: Recommended technique for large imports?

Поиск
Список
Период
Сортировка
От Sam Varshavchik
Тема Re: Recommended technique for large imports?
Дата
Msg-id 1032048102.814881.6211.501.oak@ny.email-scan.com
обсуждение исходный текст
Ответ на Recommended technique for large imports?  (Stephen Bacon <sbacon@13x.com>)
Список pgsql-jdbc
Stephen Bacon writes:

> Now I know the COPY command is much faster because it doesn't update the
> indexes after every row insert, but building that and passing it via
> jdbc seems iffy (or C, PHP, etc. for that matter).

I think someone was working on a COPY implementation for jdbc, but I don't
think it's there yet.

> Can anyone give a recommended technique for this sort of process?

Feed a few thousand INSERTs to addBatch(), then call executeBatch().  That
seems to be the fastest way to import data, at this time.


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

Предыдущее
От: Stephen Bacon
Дата:
Сообщение: Recommended technique for large imports?
Следующее
От: snpe
Дата:
Сообщение: Patch for getProcedureColumns