Re: Postgres is using 100% CPU

From: Jean-David Beyer <jeandavid8(at)verizon(dot)net>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Postgres is using 100% CPU
Date: 2015-05-31 13:04:58
Message-ID: 556B06FA.3000305@verizon.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-performance

On 05/30/2015 09:46 AM, Ashik S L wrote:
> We are using postgres SQL version 8.4.17..
> Postgres DB szie is 900 MB and we are inserting 273 rows at once .and
> each row is of 60 bytes.Every time we insert 16380 bytes of data.

Way back when, I was inserting a lot of rows of date (millions of rows)
and it was taking many hours on a machine with 6 10,000 rpm Ultra/320
SCSI hard drives and 8 GBytes of ram. Each insert was a separate
transaction.

When I bunched up lots of rows (thousaands) into a single transaction,
the whole thing took less than an hour.

Is it possible that when you insert 273 rows at once, you are doing it
as 273 transactions instead of one?

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key:166D840A 0C610C8B Registered Machine 1935521.
/( )\ Shrewsbury, New Jersey http://linuxcounter.net
^^-^^ 09:00:01 up 3 days, 9:57, 2 users, load average: 4.89, 4.90, 4.91

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Yves Dorfsman 2015-05-31 14:23:10 Re: Postgres is using 100% CPU
Previous Message Tomas Vondra 2015-05-30 14:20:32 Re: Postgres is using 100% CPU

Browse pgsql-performance by date

  From Date Subject
Next Message Yves Dorfsman 2015-05-31 14:23:10 Re: Postgres is using 100% CPU
Previous Message Peter J. Holzer 2015-05-31 11:00:10 Re: Different plan for very similar queries