X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 11E08D7859 for ; Sun, 4 Sep 2005 11:39:10 -0300 (ADT) 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 95092-07 for ; Sun, 4 Sep 2005 14:39:05 +0000 (GMT) Received: from mx1.surnet.cl (mx1.surnet.cl [216.155.73.180]) by svr1.postgresql.org (Postfix) with ESMTP id 04AF8D77EB for ; Sun, 4 Sep 2005 11:39:03 -0300 (ADT) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx1.surnet.cl with ESMTP; 04 Sep 2005 10:40:09 -0400 X-IronPort-AV: i="3.96,166,1122868800"; d="scan'208"; a="3964707:sNHT36815448" Received: from alvh.no-ip.org (216.155.78.140) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 4317C63400039645; Sun, 4 Sep 2005 10:39:08 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id E232CC2DC74; Sun, 4 Sep 2005 10:39:51 -0400 (CLT) Date: Sun, 4 Sep 2005 10:39:51 -0400 From: Alvaro Herrera To: Hemant Pandey Cc: pgsql-admin@postgresql.org Subject: Re: How to optimize Postgres Database Message-ID: <20050904143951.GB11842@surnet.cl> Mail-Followup-To: Hemant Pandey , pgsql-admin@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.297 required=5 tests=[AWL=-0.479, DNS_FROM_RFC_ABUSE=0.374, DNS_FROM_RFC_POST=1.376, RCVD_IN_NJABL_PROXY=1.026] X-Spam-Level: ** X-Archive-Number: 200509/23 X-Sequence-Number: 18760 On Tue, Aug 30, 2005 at 09:45:52AM +0530, Hemant Pandey wrote: > I am running an application, which connects to the postgres > database at initialization time and perform the database operations like > Select/Update. > Database queries are very simple. > On analyzing my application through Quantifier( Performance analyzing > tool), I found the most of the time my application is waiting on recv, > waiting for Database response. > When i run Vacuum on perticular tables, i observed that performance > improoves drastically. Looks like you aren't doing the appropiate regular maintenance tasks. Please have a look at the manual, http://www.postgresql.org/docs/8.0/static/maintenance.html For further performance tuning, have a look at http://www.powerpostgresql.com/PerfList -- Alvaro Herrera -- Valdivia, Chile Architect, www.EnterpriseDB.com "There is evil in the world. There are dark, awful things. Occasionally, we get a glimpse of them. But there are dark corners; horrors almost impossible to imagine... even in our worst nightmares." (Van Helsing, Dracula A.D. 1972)