Re: Is there a meaningful benchmark? - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Is there a meaningful benchmark?
Date
Msg-id dcc563d10903261637h7b401995t9a754b58f4ab09b0@mail.gmail.com
Whole thread Raw
In response to Re: Is there a meaningful benchmark?  (Raymond O'Donnell <rod@iol.ie>)
List pgsql-general
On Thu, Mar 26, 2009 at 5:23 PM, Raymond O'Donnell <rod@iol.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.

pgsql-general by date:

Previous
From: Dhaval Jaiswal
Date:
Subject: Re: difference between current_timestamp and now() in quotes
Next
From: Mike Christensen
Date:
Subject: Best way to store a threaded message list/tree in SQL