pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
To: pgsql-performance@postgresql.org
Subject: Re: pgsql inserts problem
Date: Thu, 28 Aug 2003 12:22:02 +0530
Message-ID: <3F4DF3EA.6723.338F5D1@localhost> (raw)
In-Reply-To: <Pine.LNX.4.55.0308271534120.21841@blackblue.iasi.rdsnet.ro>

On 27 Aug 2003 at 15:50, Tarhon-Onu Victor wrote:

> 
> 	Hi,
> 
> 	I have a (big) problem with postgresql when making lots of 
> inserts per second. I have a tool that is generating an output of ~2500 
> lines per seconds. I write a script in PERL that opens a pipe to that 
> tool, reads every line and inserts data.
> 	I tryed both commited and not commited variants (the inserts 
> were commited at every 60 seconds), and the problem persists.

Assuming one record per line, you are committing after 150K records, that's not 
good.

Try committing every 5 seconds. And open more than one conenction. That will 
certainly improve performance. Afterall concurrency is biggest assset of 
postgresql.

Fiddle around with combination and see which works best for you.

Bye
 Shridhar

--
Mencken and Nathan's Ninth Law of The Average American:	The quality of a 
champagne is judged by the amount of noise the	cork makes when it is popped.




view thread (7+ messages)  latest in thread

Message-ID: <3F4DF3EA.6723.338F5D1@localhost>
Permalink:  ../3F4DF3EA.6723.338F5D1@localhost/
Also on:    postgresql.org/message-id/3F4DF3EA.6723.338F5D1@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: shridhar_daithankar@persistent.co.in
  Subject: Re: pgsql inserts problem
  In-Reply-To: <3F4DF3EA.6723.338F5D1@localhost>
  References: <Pine.LNX.4.55.0308271534120.21841@blackblue.iasi.rdsnet.ro> <3F4DF3EA.6723.338F5D1@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox