Re: Performance considerations for very heavy INSERT traffic

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Brandon Black <blblack(at)gmail(dot)com>
Cc: Greg Stark <gsstark(at)mit(dot)edu>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance considerations for very heavy INSERT traffic
Date: 2005-09-13 14:10:31
Message-ID: 20050913141031.GJ6026@ns.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

* Brandon Black (blblack(at)gmail(dot)com) wrote:
> Ideally I'd like to commit the data seperately, as the data could contain
> errors which abort the transaction, but it may come down to batching it and
> coding things such that I can catch and discard the offending row and retry
> the transaction if it fails (which should be fairly rare I would hope). I

Don't really know if it'd be better, or worse, or what, but another
thought to throw out there is to perhaps use savepoints instead of full
transactions? Not sure if that's more expensive or cheaper than doing
full commits but it might be something to consider.

> When I finally get all of this sorted out and working reasonably optimally,
> I'll be sure to come back and report what techniques/settings did and didn't
> work for this workload.

That'd be great, many thanks,

Stephen

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Merlin Moncure 2005-09-13 14:20:05 Re: Low performance on Windows problem
Previous Message Dalibor Sramek 2005-09-13 13:49:51 Re: Low performance on Windows problem