X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id A0DB69DC87E for ; Sun, 12 Mar 2006 14:38:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62171-07 for ; Sun, 12 Mar 2006 14:38:28 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.198]) by postgresql.org (Postfix) with ESMTP id 624659DC879 for ; Sun, 12 Mar 2006 14:38:26 -0400 (AST) Received: by xproxy.gmail.com with SMTP id i29so801982wxd for ; Sun, 12 Mar 2006 10:38:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=g26s6PfkTVK9c/3g9K3YefqfFzNwm0BdlehGvwrmNGEyztvvdqn6Iu09HaEQYrP86FIm6PbFapOqb3yYS6EFFTvVvGctZibIRqvYzPwJOjbyQppIFv6y+WYgSgAe1CK9hAt0dCy7LszpXLqJQyUAAB0PkRNChf+sPVza3LZ1O/g= Received: by 10.70.97.12 with SMTP id u12mr2017303wxb; Sun, 12 Mar 2006 10:38:27 -0800 (PST) Received: by 10.70.128.2 with HTTP; Sun, 12 Mar 2006 10:38:27 -0800 (PST) Message-ID: Date: Sun, 12 Mar 2006 12:38:27 -0600 From: "Matthew Nuzum" Reply-To: newz@bearfruit.org To: Phadnis Subject: Re: help needed asap.... Cc: pgsql-performance@postgresql.org In-Reply-To: <20060312114625.7463.qmail@webmail8.rediffmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060312114625.7463.qmail@webmail8.rediffmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.155 required=5 tests=[AWL=0.155] X-Spam-Score: 0.155 X-Spam-Level: X-Archive-Number: 200603/157 X-Sequence-Number: 17594 On 12 Mar 2006 11:46:25 -0000, Phadnis wrote: > Hi. > > I am new to postgres and i need help from u.i hope i get positive respon= se.. though my questions mite seem silly to u... > > iam working on postgres.. i have around 1 lakh records in almost 12 tabl= es.. > 1 ) when i try to query for count or for any thg it takes a long time to= return the result. How to avoid this > > 2) also i want to know how to increase the performance..( i do vacuum o= nce in a day) > These two questions are applicable to this list... your other questions may get quicker responses on the users list. However, you haven't provided enough information for anyone here to help. Here's what you should do: Find queries that you think should be faster than they are. For example, if your query is "Select count(*) from foo" you can get important performance information about the query by running: EXPLAIN ANALYZE select count(*) from foo Send the details of the query, including the output from the explain analyze output (which looks pretty meaningless until you've learned what to look for) to the list with a detailed question. Also, for general performance hints, tell the list what your setup is, what items you've tweaked (and maybe why). Generally, be as generous with your details as you can. Also, have you googled around for hints? Here's a good website with information: http://www.varlena.com/varlena/GeneralBits/Tidbits/index.php Notice there's a section on performance tips. Also, this list works because volunteers who have knowledge and free time choose to help when they can. If you really need answers ASAP, there are a few organizations who provide paid support. -- Matthew Nuzum www.bearfruit.org