Re: Slow Inserts on large tables

Поиск
Список
Период
Сортировка
От Peter Childs
Тема Re: Slow Inserts on large tables
Дата
Msg-id a2de01dd0810030147m4b2d302aj49e1bb38146d0523@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Slow Inserts on large tables  (Peter Eisentraut <peter_e@gmx.net>)
Ответы 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>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Slow Inserts on large tables
Следующее
От: Iulian Dragan
Дата:
Сообщение: Re: Slow Inserts on large tables