X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 63EEC53051 for ; Thu, 11 Aug 2005 21:30:33 -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 20880-10 for ; Fri, 12 Aug 2005 00:30:30 +0000 (GMT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by svr1.postgresql.org (Postfix) with ESMTP id 3B2E352EBC for ; Thu, 11 Aug 2005 21:30:29 -0300 (ADT) Received: from osgiliath.mathom.us ([70.108.53.154]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IL300BRX2QW7OZ5@vms044.mailsrvcs.net> for pgsql-performance@postgresql.org; Thu, 11 Aug 2005 19:30:33 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id 207CF6005E0 for ; Thu, 11 Aug 2005 20:30:32 -0400 (EDT) Received: from osgiliath.mathom.us ([127.0.0.1]) by localhost (osgiliath [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27559-05-3 for ; Thu, 11 Aug 2005 20:30:32 -0400 (EDT) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 05DF16005C0; Thu, 11 Aug 2005 20:30:32 -0400 (EDT) Date: Thu, 11 Aug 2005 20:30:31 -0400 From: Michael Stone Subject: Re: Mostly read performance In-reply-to: <42FBDB97.1010906@comcast.net> To: pgsql-performance@postgresql.org Mail-Followup-To: pgsql-performance@postgresql.org Message-id: <20050812003031.GP19080@mathom.us> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-disposition: inline X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mathom.us References: <42FBCF4D.6060002@comcast.net> <42FBD377.8040006@arbash-meinel.com> <42FBDB97.1010906@comcast.net> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/139 X-Sequence-Number: 13886 On Thu, Aug 11, 2005 at 07:13:27PM -0400, Jeffrey Tenny wrote: >The system for testing was 512MB That's definately *not* a "large ram" system. If you're reading a subset of data that totals 70MB I'm going to guess that your data set is larger than or at least a large fraction of 512MB. >additional memory. However there was no swap activity on that system, >so I doubt memory was the limiting factor. The system won't swap if your data set is larger than your memory, it just won't cache the data. >Well, that's what you'd expect. But a first time 70MB fetch on a >freshly rebooted system took just as long as all secondary times. (Took >over a minute to fetch, which is too long for my needs, at least on >secondary attempts). If the query involves a table scan and the data set is larger than your available memory, you'll need a full scan every time. If you do a table scan and the table fits in RAM, subsequent runs should be faster. If you have an index and only need to look at a subset of the table, subsequent runs should be faster. Without knowing more about your queries it's not clear what your situation is. Mike Stone