From: Tom Lane <tgl@sss.pgh.pa.us>
To: Prajakt Deolasee <bugzilla.prajakt@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Postgres is slow
Date: Tue, 08 Mar 2005 14:36:52 -0500
Message-ID: <13487.1110310612@sss.pgh.pa.us> (raw)
In-Reply-To: <6bf1b0a0050308095142eef89b@mail.gmail.com>
References: <6bf1b0a005030805495ec76763@mail.gmail.com>
<Pine.LNX.4.58.0503081502170.27514@www.forgeahead.hu>
<422DE271.5010701@hogranch.com>
<6bf1b0a0050308095142eef89b@mail.gmail.com>
Prajakt Deolasee <bugzilla.prajakt@gmail.com> writes:
> Thanks guys.. I will try of the suggested steps. But one thing that I
> do not understand that why should the performance deteriorate with
> exactly same data with subsequent tests. And its juts gets worse as I
> keep running it.
This is surely a matter of dead-row bloat. Are you vacuuming the tables
between runs? Do you have the FSM parameters set high enough to keep
track of all the dead space you create by UPDATEs or DELETEs?
I was just looking at the "sql-bench" stuff that MySQL distributes. One
of the tests that we look particularly awful on goes like this:
* build table with 300,000 rows.
* full-table update (UPDATE foo SET col = something)
* repeat full-table update 10 times
With a VACUUM after each update, things would be fine, but since they
don't have one in the loop the table bloats to 10 times its normal size
(as do its indexes) and performance goes quickly south ... and not only
on that test, but on the subsequent ones using the same table ...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, bugzilla.prajakt@gmail.com
Subject: Re: Postgres is slow
In-Reply-To: <13487.1110310612@sss.pgh.pa.us>
References: <6bf1b0a005030805495ec76763@mail.gmail.com> <Pine.LNX.4.58.0503081502170.27514@www.forgeahead.hu> <422DE271.5010701@hogranch.com> <6bf1b0a0050308095142eef89b@mail.gmail.com> <13487.1110310612@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox