From: | "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in> |
---|---|
To: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: pgsql inserts problem |
Date: | 2003-08-28 06:52:02 |
Message-ID: | 3F4DF3EA.6723.338F5D1@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-performance |
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2003-08-28 07:34:12 | Re: pgsql inserts problem |
Previous Message | Tarhon-Onu Victor | 2003-08-28 06:29:03 | Re: pgsql inserts problem |
From | Date | Subject | |
---|---|---|---|
Next Message | Shridhar Daithankar | 2003-08-28 06:53:54 | Re: Comparing postgresql7.4 CVS head on linux 2.4.20 and 2.6.0-test4 |
Previous Message | Tomka Gergely | 2003-08-28 06:51:33 | Re: Hardware recommendations to scale to silly load |