Re: Postgres batch write very slow - what to do - Mailing list pgsql-performance

From Merlin Moncure
Subject Re: Postgres batch write very slow - what to do
Date
Msg-id b42b73150703130540sf2a388ka2d5e5e4341d9272@mail.gmail.com
Whole thread Raw
In response to Postgres batch write very slow - what to do  (femski <hypertree@yahoo.com>)
List pgsql-performance
On 3/13/07, femski <hypertree@yahoo.com> wrote:
>
> Folks !
>
> I have a batch application that writes approx. 4 million rows into a narrow
> table. I am using JDBC addBatch/ExecuteBatch with auto commit turned off.
> Batch size is 100. So far I am seeing Postgres take roughly five times the
> time it takes to do this in the Oracle.
>
> I have played with many parameters. Only one that seems to have any affect
> is fsync - but thats only 10% or so.
> Initially I got the warning that checkpoints were happening too often so I
> increased the segments to 24. Warnings stopped, but no real improvement in
> performance.
>
> Is postgres really that slow ? What am I missing ?

how many inserts/sec are you getting approximately.  Maybe you have
some type of network issue.

merlin

pgsql-performance by date:

Previous
From:
Date:
Subject: Re: Execution plan changed after upgrade from 7.3.9 to 8.2.3
Next
From: femski
Date:
Subject: Re: Postgres batch write very slow - what to do