Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 82DC747590C for ; Mon, 28 Oct 2002 11:38:47 -0500 (EST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id E4B434758E1 for ; Mon, 28 Oct 2002 11:38:46 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 687AED62C; Mon, 28 Oct 2002 08:38:48 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 5E29A5C05; Mon, 28 Oct 2002 08:38:48 -0800 (PST) Date: Mon, 28 Oct 2002 08:38:48 -0800 (PST) From: Stephan Szabo To: Pandurang Cc: Subject: Re: Strange..!!! Can u tell me why this ? In-Reply-To: Message-ID: <20021028083802.J79386-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/269 X-Sequence-Number: 6127 On 26 Oct 2002, Pandurang wrote: > But Later on as the DB size get increased the time was also get > increased. And at one point i noticed the time required to gererate > this report is very high near abt 10 to 15 hrs. So I checked for > performanance. > > Site was also become very slow. A simple page which is fetching just > 20 records, for that also I got the error page not displayed.I tried > my level best to find out the problem. But I couldn't...!!! :-(( > > So at last I decided to drop DB and recreate once more after taking > backup of data. And I did that. After that i was surprised that site > become very very fast. And the pages for which I got the error comes > in less than 10 seconds. > > So can u tell me why this happens ? Why suddenly DB performanance get > increased so fastly ? Prev.ly I tried for vacuumdb also.... You tried vacuuming, but were you doing analyze (I believe -z to vacuumdb)? What does explain show for the queries in question?