X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4175B476368 for ; Fri, 18 Apr 2003 16:35:09 -0400 (EDT) Received: from polaris.pinpointresearch.com (66-7-238-176.cust.telepacific.net [66.7.238.176]) by postgresql.org (Postfix) with ESMTP id 70BA547636F for ; Fri, 18 Apr 2003 16:35:04 -0400 (EDT) Received: from there (66-7-238-179.cust.telepacific.net [66.7.238.179]) by polaris.pinpointresearch.com (Postfix) with SMTP id 2CC9E103C7; Fri, 18 Apr 2003 13:35:05 -0700 (PDT) Content-Type: text/plain; charset="iso-8859-1" From: Steve Crawford Organization: Pinpoint Research To: "Derek Hamilton" , Subject: Re: Performance Expectations Date: Fri, 18 Apr 2003 12:35:05 -0800 X-Mailer: KMail [version 1.3.1] References: <000501c305d7$b001a070$1b01a8c0@jcaves.net> In-Reply-To: <000501c305d7$b001a070$1b01a8c0@jcaves.net> MIME-Version: 1.0 Message-Id: <20030418203505.2CC9E103C7@polaris.pinpointresearch.com> Content-Transfer-Encoding: quoted-printable 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 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/265 X-Sequence-Number: 8420 Hard to say. Here are the initial questions I have: What is the nature of the query? Returns single row or 10,000? Single table= =20 or multiple joined tables? Aggregates? Grouping? Is the database updated often? How about vacuumed to manage on-disk size? Is data delivered locally or over the wire? What is the client? What platform (CPU, RAM, Disk, OS) and PG version? What is the system load - single PG user or hundreds of simultaneous querie= s=20 and running the web server and mail server, too? What does sar report for C= PU=20 and disk load? If you are using a 7.3 version, what does psql report when you run the quer= y=20 with \timing on? Out of curiosity I just did a quick search for all records for a single hou= r=20 from a table that has part of our phone bill from last year (1.8 million=20 records) and the result (810 records) was returned in under 0.5 seconds. Th= is=20 table resides on my desktop so I'm the only user but it's also far from a= =20 "server-class" machine. Cheers, Steve On Friday 18 April 2003 11:24 am, Derek Hamilton wrote: > Hello all, > > We're using PostgresQL with a fairly large database (about 2GB). I have > one table that currently exceeds 4.5 million records and will probably gr= ow > to well over 5 fairly soon. The searching of this table is basically done > on one field, which field I have set up a btree index on. My question is, > if I search this table and get the results back in about 6-7 seconds is > that pretty good, not so good...? What are the things I should look at in > determining the performance on this? > > BTW, forgive the lack of information. I'd be happy to post more info on > the table, hardware, etc. I just didn't want to overwhelm the initial > question. > > Thanks, > Derek Hamilton > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster