X-Original-To: pgsql-general@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A6C79476375 for ; Wed, 16 Apr 2003 02:59:16 -0400 (EDT) Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by postgresql.org (Postfix) with ESMTP id AB67C476373 for ; Wed, 16 Apr 2003 02:59:14 -0400 (EDT) Received: (from root@localhost) by www.pspl.co.in (8.11.6/8.11.6) id h3G6xEf30535 for ; Wed, 16 Apr 2003 12:29:14 +0530 Received: from daithan.intranet.pspl.co.in (daithan.intranet.pspl.co.in [192.168.7.161]) by www.pspl.co.in (8.11.6/8.11.0) with ESMTP id h3G6xE230530 for ; Wed, 16 Apr 2003 12:29:14 +0530 From: Shridhar Daithankar To: "pgsql (E-mail)" Subject: Re: Performance Problem Date: Wed, 16 Apr 2003 12:29:17 +0530 User-Agent: KMail/1.5 References: <002601c303b9$3337bdb0$8dce44c8@pc2000> In-Reply-To: <002601c303b9$3337bdb0$8dce44c8@pc2000> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304161229.17469.shridhar_daithankar@nospam.persistent.co.in> X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/956 X-Sequence-Number: 41021 On Wednesday 16 April 2003 07:10, Pedro C. Arias wrote: > Hello, i use PostgresSQL 7.3.2 on Mandrake 9.0, I create a Database to test > performance vs. SQL-Server, the idea is migrate SQL-Server to Postgres. > This test is retrieve a table sorted by a field ie: "select * from test > order by id_field asc", postgress retrieve it in 43 seconds and SQL-Server > in 8 seconds The table has 100.000 records, why the diference, how > acelerete the performance of postgres, have any tutorial on the web to > optimize querys ? There are too many variables to tune for. To start with, tune postgresql.conf. Look for number of shared buffers and sort mem. Also vacuum periodically. More specific information would help. Shridhar