Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id BC0F0B5DBE1 for ; Tue, 21 Jun 2011 17:34:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 94562-05 for ; Tue, 21 Jun 2011 20:34:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 7A952B5DBD3 for ; Tue, 21 Jun 2011 17:34:40 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QZ7eh-0003fC-Nq for pgsql-performance@postgresql.org; Tue, 21 Jun 2011 13:34:39 -0700 Date: Tue, 21 Jun 2011 13:34:39 -0700 (PDT) From: Tripura To: pgsql-performance@postgresql.org Message-ID: <1308688479731-4511903.post@n5.nabble.com> Subject: Improve the Postgres Query performance MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.766 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201106/206 X-Sequence-Number: 44139 Hello All.. This is my first PostgreSql database. It has 8 tables and 4 tables are very huge each with 6million records. I have a simple view on this tables and it is taking more than 3hrs to return the results. Can someone help me the way to improve the db return the results in a faster way. I am not sure ... how to improve the performace and return the faster query results in PostgreSql. I tried creating index on each of this tables for example CREATE INDEX idx_idlocalizedname ON "LocalizedName" USING btree (id) WITH (FILLFACTOR=95); But still it did not help me much Can someone guide me the way to improve the performance in PostgreSql Thx, Triprua -- View this message in context: http://postgresql.1045698.n5.nabble.com/Improve-the-Postgres-Query-performance-tp4511903p4511903.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com.