X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D41A55636A for ; Tue, 8 Mar 2005 19:36:56 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 73573-03 for ; Tue, 8 Mar 2005 19:36:55 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 97B0A5643E for ; Tue, 8 Mar 2005 19:36:54 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j28JaqTQ013488; Tue, 8 Mar 2005 14:36:52 -0500 (EST) To: Prajakt Deolasee Cc: pgsql-jdbc@postgresql.org Subject: Re: Postgres is slow In-reply-to: <6bf1b0a0050308095142eef89b@mail.gmail.com> References: <6bf1b0a005030805495ec76763@mail.gmail.com> <422DE271.5010701@hogranch.com> <6bf1b0a0050308095142eef89b@mail.gmail.com> Comments: In-reply-to Prajakt Deolasee message dated "Tue, 08 Mar 2005 23:21:08 +0530" Date: Tue, 08 Mar 2005 14:36:52 -0500 Message-ID: <13487.1110310612@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/73 X-Sequence-Number: 12465 Prajakt Deolasee 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