Re: database slowdown while a lot of inserts occur - Mailing list pgsql-performance

From Andrew Dunstan
Subject Re: database slowdown while a lot of inserts occur
Date
Msg-id 4F74BA78.4090506@dunslane.net
Whole thread Raw
In response to Re: database slowdown while a lot of inserts occur  (Bob Lunney <bob_lunney@yahoo.com>)
List 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 by date:

Previous
From: Bob Lunney
Date:
Subject: Re: database slowdown while a lot of inserts occur
Next
From: Shrirang Chitnis
Date:
Subject: Re: database slowdown while a lot of inserts occur