Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id AD08C9FA2CA for ; Thu, 30 Nov 2006 21:10:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 14956-02 for ; Thu, 30 Nov 2006 21:10:01 -0400 (AST) X-Greylist: delayed 00:32:39.688347 by SQLgrey-1.7.4 Received: from backup.worleyco.com (unknown [72.159.100.67]) by postgresql.org (Postfix) with ESMTP id 8AA049FA282 for ; Thu, 30 Nov 2006 21:10:01 -0400 (AST) Received: from www.hardgeus.com (unknown [192.168.8.4]) by backup.worleyco.com (Postfix) with SMTP id 4C44A26800A; Thu, 30 Nov 2006 18:37:12 -0600 (CST) Received: from 71.81.36.247 (SquirrelMail authenticated user nospam) by www.hardgeus.com with HTTP; Thu, 30 Nov 2006 18:37:12 -0600 (CST) Message-ID: <55688.71.81.36.247.1164933432.squirrel@www.hardgeus.com> Date: Thu, 30 Nov 2006 18:37:12 -0600 (CST) Subject: Re: Defining performance. From: nospam@hardgeus.com To: "Paul Lathrop" Cc: pgsql-performance@postgresql.org User-Agent: SquirrelMail/1.4.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.962 tagged_above=0 required=5 tests=BAYES_50, NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200611/281 X-Sequence-Number: 22051 > 4) Much of my reading of the PG docs and list archives seems to suggest that much of performance tuning is done at the query level - you have to know how to ask for information in an efficient way. Performance does not exist in a vacuum (ho ho, PostgreSQL joke). The person writing the queries has to understand what is actually happening inside of the database. When I ported my app from MS SQL over to PostgreSQL several years ago, there were many queries that were previously zippy that ran like turds on PostgreSQL, and vice-versa! As my dataset has gotten larger I have had to throw more metal at the problem, but I have also had to rethink my table and query design. Just because your data set grows linearly does NOT mean that the performance of your query is guaranteed to grow linearly! A sloppy query that runs OK with 3000 rows in your table may choke horribly when you hit 50000. John