Re: Inserts optimization? - Mailing list pgsql-performance

From Chris
Subject Re: Inserts optimization?
Date
Msg-id 443DA715.4060606@gmail.com
Whole thread Raw
In response to Inserts optimization?  (Francisco Reyes <lists@stringsutils.com>)
Responses Re: Inserts optimization?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
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.
> Plan to have 2 to 3 clients which most of the time will not run at the
> same time, but ocasionaly it's possible two of them may bump into each
> other.

If you can, use copy instead:

http://www.postgresql.org/docs/8.1/interactive/sql-copy.html

MUCH quicker (and don't worry about using multiple clients).

--
Postgresql & php tutorials
http://www.designmagick.com/

pgsql-performance by date:

Previous
From: Francisco Reyes
Date:
Subject: Inserts optimization?
Next
From: "patrick keshishian"
Date:
Subject: pg 7.4.x - pg_restore impossibly slow