X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AA9C3DB024 for ; Thu, 27 Oct 2005 04:40:41 -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 15615-05 for ; Thu, 27 Oct 2005 07:40:37 +0000 (GMT) Received: from 137086.vserver.de (vs137086.vserver.de [62.75.137.86]) by svr1.postgresql.org (Postfix) with ESMTP id 7943DDB01E for ; Thu, 27 Oct 2005 04:40:36 -0300 (ADT) Received: from a-kretschmer.de (p54B38C65.dip0.t-ipconnect.de [84.179.140.101]) (authenticated bits=0) by 137086.vserver.de (8.12.8/8.12.8) with ESMTP id j9R7eYGp001474 for ; Thu, 27 Oct 2005 09:40:34 +0200 Received: from kretschmer by a-kretschmer.de with local (Exim 3.36 #1) id 1EV2RR-000156-00 for pgsql-sql@postgresql.org; Thu, 27 Oct 2005 09:44:53 +0200 Date: Thu, 27 Oct 2005 09:44:53 +0200 From: Andreas Kretschmer To: pgsql-sql@postgresql.org Subject: Re: How to speed up the database query? Message-ID: <20051027074453.GA4136@kaufbach.delug.de> References: <5076660.1130396616478.SLOX.WebMail.wwwrun@openx.mimos.my> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5076660.1130396616478.SLOX.WebMail.wwwrun@openx.mimos.my> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: mutt-ng 1.5.9i (Linux) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/355 X-Sequence-Number: 23208 Abdul Wahab Dahalan schrieb: > Hi everyone! > > I'm looking for solution to speed up the database query, means that to > get resultset as quicker as we can. 09:41 < akretschmer> ??tuning 09:41 < rtfm_please> For information about tuning 09:41 < rtfm_please> see http://www.powerpostgresql.com 09:41 < rtfm_please> or http://www.powerpostgresql.com/PerfList 09:41 < rtfm_please> or http://www.varlena.com/varlena/GeneralBits/116.php > > For example if I've 700 records in the table it will take longer time > compared if I've only 20 records. How do we speed up the query?. Any > query technique that can be applied?. Read the links above. You should use Indexe for searching. And you should use 'explain select ...' to see how the planer works. 09:43 < akretschmer> ??explain 09:43 < rtfm_please> For information about explain 09:43 < rtfm_please> see http://techdocs.postgresql.org/oscon2005/robert.treat/OSCON_Explaining_Explain_Public.sxi 09:43 < rtfm_please> or http://www.gtsm.com/oscon2003/toc.html 09:43 < rtfm_please> or http://www.postgresql.org/docs/current/static/sql-explain.html Regards, Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°