Re: COPY and indices?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: COPY and indices?
Дата
Msg-id CAOR=d=3JRq1d8SY9+8DNWoME-Spo0j+1sMEpWoamy1RBrAyYUw@mail.gmail.com
обсуждение исходный текст
Ответ на COPY and indices?  (François Beausoleil <francois@teksol.info>)
Список pgsql-general
2012/3/12 François Beausoleil <francois@teksol.info>:
> Hi all,
>
> When using COPY FROM STDIN to stream thousands of rows (20k and more hourly), what happens with indices? Are they
updatedonly once after the operation, or are they updated once per row? Note that I'm not replacing the table's data:
I'mappending to what's already there. I suspect batching writes will be faster than writing each individual row using
anINSERT statement. 

Copy is faster, but if a single row fails (dup key etc) the whole copy fails.

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

Предыдущее
От: Ondrej Ivanič
Дата:
Сообщение: Re: COPY and indices?
Следующее
От: hamann.w@t-online.de
Дата:
Сообщение: Re: COPY and indices?