Re: Postgress is taking lot of CPU on our embedded hardware.

From: Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz>
To: Jayashankar K B <Jayashankar(dot)KB(at)lnties(dot)com>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Postgress is taking lot of CPU on our embedded hardware.
Date: 2012-01-28 23:58:04
Message-ID: 4F248B8C.8000906@catalyst.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

If you can batch the inserts into groups (of say 10 to 100) it might
help performance - i.e:

Instead of

INSERT INTO table VALUES(...);
INSERT INTO table VALUES(...);
...
INSERT INTO table VALUES(...);

do

INSERT INTO table VALUES(...),(...),...,(...);

This reduces the actual number of INSERT calls, which can be quite a win.

Regards

Mark

On 28/01/12 07:30, Jayashankar K B wrote:
> Hi Heikki Linnakangas: We are using series of Insert statements to insert the records into database.
> Sending data in binary is not an option as the module that writes into DB has been finalized.
> We do not have control over that.
>
>

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Carlo Stonebanks 2012-01-29 04:20:40 Re: pl/pgsql functions outperforming sql ones?
Previous Message Claudio Freire 2012-01-28 19:37:14 Re: Postgress is taking lot of CPU on our embedded hardware.