Re: postponing index updates in a transaction

Поиск
Список
Период
Сортировка
От Bret Hughes
Тема Re: postponing index updates in a transaction
Дата
Msg-id 1039599581.2864.7.camel@bretsony
обсуждение исходный текст
Ответ на postponing index updates in a transaction  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Список pgsql-general
On Wed, 2002-12-11 at 03:27, Jean-Christian Imbeault wrote:
> To speed up the inserting of many rows, is there a way to turn off any
> index update being done while inside a transaction and have the index be
> update at COMMIT?
>
> Something similar to the "initially deferred"  constraint.
>
> Thanks,
>
> Jc
>
I don't think so.

The docs refer to this issue and suggest dropping the index, doing the
updates and then recreating the index.  using copy from is way faster
than individual inserts too.

Bret


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

Предыдущее
От: Jean-Christian Imbeault
Дата:
Сообщение: postponing index updates in a transaction
Следующее
От: Han Holl
Дата:
Сообщение: Update command on view returns tuples