Re: database slowdown while a lot of inserts occur

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: database slowdown while a lot of inserts occur
Дата
Msg-id 4F74BA78.4090506@dunslane.net
обсуждение исходный текст
Ответ на Re: database slowdown while a lot of inserts occur  (Bob Lunney <bob_lunney@yahoo.com>)
Список pgsql-performance

On 03/29/2012 03:27 PM, Bob Lunney wrote:
> Lance,
>
> May small inserts cause frequent fsyncs.  Is there any way those small
> inserts can be batched into some larger sets of inserts that use copy
> to perform the load?



Or possibly a prepared statement called many times in a single
transaction, if you're not using that already. It's not as efficient as
COPY, but it's often a much less extensive change to the code.

cheers

andrew



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

Предыдущее
От: Bob Lunney
Дата:
Сообщение: Re: database slowdown while a lot of inserts occur
Следующее
От: Shrirang Chitnis
Дата:
Сообщение: Re: database slowdown while a lot of inserts occur