Re: Sustained inserts per sec ... ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christopher Petrilli <petrilli(at)gmail(dot)com>
Cc: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Sustained inserts per sec ... ?
Date: 2005-04-01 20:42:08
Message-ID: 28353.1112388128@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Christopher Petrilli <petrilli(at)gmail(dot)com> writes:
> I can start at about 4,000 rows/second, but at about 1M rows, it
> plummets, and by 4M it's taking 6-15 seconds to insert 1000 rows.
> That's only about 15 rows/second, which is quite pathetic. The
> problem seems to be related to my indexes, since I have to keep them
> online (the system in continually querying, as well).

I doubt it has anything to do with your indexes. I'm wondering about
foreign key checks, myself. What FKs exist on these tables? Is the
"start" condition zero rows in every table? Which PG version exactly?

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Christopher Petrilli 2005-04-01 20:46:40 Re: Sustained inserts per sec ... ?
Previous Message Christopher Petrilli 2005-04-01 19:38:36 Re: Sustained inserts per sec ... ?