Re: Slow Inserts on large tables - Mailing list pgsql-performance

From Peter Childs
Subject Re: Slow Inserts on large tables
Date
Msg-id a2de01dd0810030147m4b2d302aj49e1bb38146d0523@mail.gmail.com
Whole thread Raw
In response to Re: Slow Inserts on large tables  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Slow Inserts on large tables  (Iulian Dragan <iulian_dragan@yahoo.com>)
Re: Slow Inserts on large tables  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
2008/10/3 Peter Eisentraut <peter_e@gmx.net>:
> Peter Childs wrote:
>>
>> I have a problem where by an insert on a "large" table will sometimes
>> take longer than usual.
>
>> I think the problem might have something to do with checkpoints,
>
> Then show us your checkpointing-related parameters.  Or try to set them to a
> lot higher values so checkpoints happen more rarely and see if that makes a
> difference.
>
>

More often or less often?

I've currently got them set to

checkpoint_segments = 3
checkpoint_timeout = 180s
checkpoint_completion_target = 0.5

after reading that doing more smaller checkpoints might make each
checkpoint work quicker and hence less of a performance hit when they
actually happen.

Regards

Peter

pgsql-performance by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Slow Inserts on large tables
Next
From: Iulian Dragan
Date:
Subject: Re: Slow Inserts on large tables