Re: Is there a meaningful benchmark?

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: rod(at)iol(dot)ie
Cc: Scott Ribe <scott_ribe(at)killerbytes(dot)com>, "Will Rutherdale (rutherw)" <rutherw(at)cisco(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Is there a meaningful benchmark?
Date: 2009-03-26 23:37:07
Message-ID: dcc563d10903261637h7b401995t9a754b58f4ab09b0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Mar 26, 2009 at 5:23 PM, Raymond O'Donnell <rod(at)iol(dot)ie> wrote:
> On 26/03/2009 23:10, Scott Marlowe wrote:
>> It's also important to point out that writers don't necessarily block
>> other writers.  As long as they're operating on different ranges of
>> the data set.  You can have dozens of writers streaming data in with
>> differening primary keys all running together.
>
> Do you have to do anything special to have this happen - e.g. table
> partitioning? - Or does it just happen automagically based on the
> primary key?

No, it's pretty much automatic. Pgsql creates new records for every
update or insert, so there's no weird locking on the original records
to make it slow. Everything just goes in the WAL and gets flushed out
to disk later. Setting up commit siblings helps on some loads.
That's about it. No rocket science or triggers really needed for lots
of writes at the same time.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mike Christensen 2009-03-26 23:57:10 Best way to store a threaded message list/tree in SQL
Previous Message Dhaval Jaiswal 2009-03-26 23:28:29 Re: difference between current_timestamp and now() in quotes