From: | Christopher Petrilli <petrilli(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | jd(at)commandprompt(dot)com, "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Sustained inserts per sec ... ? |
Date: | 2005-04-04 16:51:17 |
Message-ID: | 59d991c4050404095114ff953c@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Apr 4, 2005 12:23 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Christopher Petrilli <petrilli(at)gmail(dot)com> writes:
> > On Apr 4, 2005 11:52 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> >> Could we see the *exact* SQL definitions of the table and indexes?
>
> > Of course, this is a bit cleansed, since it's an internal project, but
> > only the column names are changed:
>
> Thanks. No smoking gun in sight there. But out of curiosity, can you
> do a test run with *no* indexes on the table, just to see if it behaves
> any differently? Basically I was wondering if index overhead might be
> part of the problem.
Running now, but it'll take a while since I have a 3/4 second pause
after each COPY to better reflect "real world" ... the application
does 1 COPY per second, or whenever it hits 1000 entries. This seemed
to be a sane way to deal with it, and not burden the system with
needless index balancing, etc.
> Also, the X-axis on your graphs seems to be total number of rows
> inserted ... can you relate that to elapsed real time for us?
Sure, like I said, there's a 3/4 second sleep between each COPY,
regardless of how long it took (which well, isn't quite right, but
close enough for this test). I've created a PNG with the X axies
reflecting "elapsed time":
http://www.amber.org/~petrilli/diagrams/pgsql_copyperf_timeline.png
In addition, I've put up the raw data I used:
http://www.amber.org/~petrilli/diagrams/results_timeline.txt
The columns are rowcount, elapsed time, instance time.
Hopefully this might help some? This machine has nothing else running
on it other than the normal stripped down background processes (like
sshd).
--
| Christopher Petrilli
| petrilli(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2005-04-04 17:05:17 | Re: 8.0.1 performance question. |
Previous Message | alvin.yk | 2005-04-04 16:44:26 | Re: 8.0.1 performance question. |