Re: improving write performance for logging application

From: Steve Eckmann <eckmann(at)computer(dot)org>
To: Ian Westmacott <ianw(at)intellivid(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: improving write performance for logging application
Date: 2006-01-04 14:16:33
Message-ID: 43BBD8C1.9080807@computer.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Ian Westmacott wrote:

>We have a similar application thats doing upwards of 2B inserts
>per day. We have spent a lot of time optimizing this, and found the
>following to be most beneficial:
>
>1) use COPY (BINARY if possible)
>2) don't use triggers or foreign keys
>3) put WAL and tables on different spindles (channels if possible)
>4) put as much as you can in each COPY, and put as many COPYs as
> you can in a single transaction.
>5) watch out for XID wraparound
>6) tune checkpoint* and bgwriter* parameters for your I/O system
>
Thanks, Ian. I will look at how to implement your suggestions.

Regards, Steve

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Ron 2006-01-04 14:29:00 Re: improving write performance for logging
Previous Message Steve Eckmann 2006-01-04 14:13:13 Re: improving write performance for logging application