From: | Christopher Petrilli <petrilli(at)gmail(dot)com> |
---|---|
To: | "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Sustained inserts per sec ... ? |
Date: | 2005-04-01 19:38:36 |
Message-ID: | 59d991c4050401113857086517@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Apr 1, 2005 1:06 PM, Marc G. Fournier <scrappy(at)postgresql(dot)org> wrote:
>
> Just curious, but does anyone have an idea of what we are capable of? I
> realize that size of record would affect things, as well as hardware, but
> if anyone has some ideas on max, with 'record size', that would be
> appreciated ...
On a AMD64/3000, 1Gb RAM, 2 SATA drives (1 for log, 1 for data), and
inserting using batches of 500-1000 rows, and also using the COPY
syntax, I have seen an interesting thing. There are 5 indexes
involved here, BTW. This is Linux 2.6 running on an XFS file system
(ext3 was even worse for me).
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).
This was an application originally written for MySQL/MYISAM, and it's
looking like PostgreSQL can't hold up for it, simply because it's "too
much database" if that makes sense. The same box, running the MySQL
implementation (which uses no transactions) runs around 800-1000
rows/second systained.
Just a point of reference. I'm trying to collect some data so that I
can provide some charts of the degredation, hoping to find the point
where it dies and thereby find the point where it needs attention.
Chris
--
| Christopher Petrilli
| petrilli(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-04-01 20:42:08 | Re: Sustained inserts per sec ... ? |
Previous Message | Mike Nolan | 2005-04-01 19:27:14 | Re: Sustained inserts per sec ... ? |