Re: How filesystems matter with PostgreSQL

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: How filesystems matter with PostgreSQL
Date: 2010-06-06 07:48:19
Message-ID: 4C0B52C3.4050901@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Torsten Zühlsdorff 2010-06-06 12:02:20 Re: How to insert a bulk of data with unique-violations very fast
Previous Message Ron Mayer 2010-06-06 06:51:08 Re: How filesystems matter with PostgreSQL