in Pl/PgSQL, do commit every 5000 records

Поиск
Список
Период
Сортировка
От Emi Lu
Тема in Pl/PgSQL, do commit every 5000 records
Дата
Msg-id 44118EE0.7090705@encs.concordia.ca
обсуждение исходный текст
Ответы Re: in Pl/PgSQL, do commit every 5000 records  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-general
Good morning,

In a plpgsql function, I am trying to insert 900, 000 records into
several tables. I remembered people mentioned before that it is better
and more efficient to commit actions for let's say every 5000 records'
insertion.

May I get more inputs about why and how this commit can speed up the
transaction please?

Thanks a lot,
Ying


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

Предыдущее
От: Clive Page
Дата:
Сообщение: Re: Baffled by failure to use index when WHERE uses a
Следующее
От: igor@carcass.ath.cx
Дата:
Сообщение: panic during pgsql startup