Re: How filesystems matter with PostgreSQL

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: How filesystems matter with PostgreSQL
Дата
Msg-id 4C0B52C3.4050901@postnewspapers.com.au
обсуждение исходный текст
Ответ на Re: How filesystems matter with PostgreSQL  (Ron Mayer <rm_pg@cheapcomplexdevices.com>)
Список pgsql-performance
On 06/06/10 14:51, Ron Mayer wrote:
> Jon Schewe wrote:
>
>> OK, so if I want the 15 minute speed, I need to give up safety (OK in
>> this case as this is just research testing), or see if I can tune
>> postgres better.
>
> Depending on your app, one more possibility would be to see if you
> can re-factor the application so it can do multiple writes in parallel
> rather than waiting for each one to complete.   If I understand right,
> then many transactions could potentially be handled by a single fsync.

By using a commit delay, yes. (see postgresql.conf). You do open up the
risk of losing transactions committed within the commit delay period,
but you don't risk corruption like you do with fsync.

Sometimes you can also batch work into bigger transactions. The classic
example here is the usual long stream of individual auto-committed
INSERTs, which when wrapped in an explicit transaction can be vastly
quicker.

--
Craig Ringer

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

Предыдущее
От: Ron Mayer
Дата:
Сообщение: Re: How filesystems matter with PostgreSQL
Следующее
От: Andy Colson
Дата:
Сообщение: Re: How to insert a bulk of data with unique-violations very fast