Skip site navigation (1) Skip section navigation (2)

Re: Inserts optimization?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris <dmagick(at)gmail(dot)com>
Cc: Francisco Reyes <lists(at)stringsutils(dot)com>, Pgsql performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Inserts optimization?
Date: 2006-04-13 04:42:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Chris <dmagick(at)gmail(dot)com> writes:
> Francisco Reyes wrote:
>> Doing my first write heavy database.
>> What settings will help improve inserts?
>> Only a handfull of connections, but each doing up to 30 inserts/second.

> If you can, use copy instead:

Or at least try to do multiple inserts per transaction.

Also, increasing checkpoint_segments and possibly wal_buffers helps a
lot for write-intensive loads.  Try to get the WAL onto a separate disk
spindle if you can.  (These things don't matter for SELECTs, but they
do matter for writes.)

			regards, tom lane

In response to


pgsql-performance by date

Next:From: Tom LaneDate: 2006-04-13 04:46:51
Subject: Re: pg 7.4.x - pg_restore impossibly slow
Previous:From: Bruce MomjianDate: 2006-04-13 02:55:55
Subject: Re: Sun Fire T2000 and PostgreSQL 8.1.3

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group