X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 202ED47636C for ; Fri, 18 Apr 2003 15:56:57 -0400 (EDT) Received: from capweb.com (capweb.com [161.58.201.59]) by postgresql.org (Postfix) with ESMTP id C541347631B for ; Fri, 18 Apr 2003 15:56:55 -0400 (EDT) Received: from CWWNTLTD ([64.57.98.34]) by capweb.com (8.12.6p2) id h3IJusZb001853; Fri, 18 Apr 2003 19:56:55 GMT Message-ID: <000401c305e4$7aaa2840$1b01a8c0@jcaves.net> From: "Derek Hamilton" To: "Marc Mitchell" , References: <000501c305d7$b001a070$1b01a8c0@jcaves.net> <006c01c305db$28050460$6701050a@eisolution.com> Subject: Re: Performance Expectations Date: Fri, 18 Apr 2003 12:55:35 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Status: No, hits=-11.3 required=5.0 tests=BAYES_30,QUOTED_EMAIL_TEXT,REFERENCES 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/262 X-Sequence-Number: 8417 Hey Marc, I've run the EXPLAIN statement on the query and it does use the index. I also use an "order by" on the table that does not include the indexed field. Would adding an index for the fields I'm ordering by help at all? Thanks, Derek > I would suggest simply doing an EXPLAIN on your query and examining the > output. It will tell you whether your index is being used or not. That's > a big first step in determining what your optimal performance expectations > should be. >