Re: improving write performance for logging application - Mailing list pgsql-performance

From Steve Eckmann
Subject Re: improving write performance for logging application
Date
Msg-id 43BBD8C1.9080807@computer.org
Whole thread Raw
In response to Re: improving write performance for logging application  (Ian Westmacott <ianw@intellivid.com>)
List 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

pgsql-performance by date:

Previous
From: Steve Eckmann
Date:
Subject: Re: improving write performance for logging application
Next
From: Ron
Date:
Subject: Re: improving write performance for logging