Re: Slow Inserts on large tables

From: "Peter Childs" <peterachilds(at)gmail(dot)com>
To:
Cc: "Postgresql Performance" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Slow Inserts on large tables
Date: 2008-10-03 08:47:38
Message-ID: a2de01dd0810030147m4b2d302aj49e1bb38146d0523@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

2008/10/3 Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Iulian Dragan 2008-10-03 10:09:37 Re: Slow Inserts on large tables
Previous Message Peter Eisentraut 2008-10-03 08:22:05 Re: Slow Inserts on large tables