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
Список
Дерево обсуждения
Re: Recommended technique for large imports? Sam Varshavchik <mrsam@courier-mta.com>
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
Дата:
От: snpe
Дата:
Сообщение: Patch for getProcedureColumns
FAQ