X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0AE5C3A5C8F for ; Wed, 26 Jan 2005 17:39:33 +0000 (GMT) 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 48570-10 for ; Wed, 26 Jan 2005 17:39:26 +0000 (GMT) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by svr1.postgresql.org (Postfix) with ESMTP id B849B3A5CAA for ; Wed, 26 Jan 2005 17:39:25 +0000 (GMT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-30.mail.demon.net with esmtp (Exim 4.42) id 1Ctr8U-0004Sh-0b; Wed, 26 Jan 2005 17:39:23 +0000 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id EF039166E6; Wed, 26 Jan 2005 17:39:15 +0000 (GMT) Message-ID: <41F7D5BC.7050000@archonet.com> Date: Wed, 26 Jan 2005 17:39:08 +0000 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joel Fradkin Cc: gsstark@mit.edu, pgsql-sql@postgresql.org, ac@wazagua.com, 'Steve Goldsmith' Subject: Re: same question little different test MSSQL vrs Postgres References: <000001c503c9$0d2e38d0$797ba8c0@jfradkin> In-Reply-To: <000001c503c9$0d2e38d0$797ba8c0@jfradkin> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.07 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/268 X-Sequence-Number: 20056 Joel Fradkin wrote: > Thank you I will look at that info. > I did do an EXPLAIN ANALYSE on the view and could see it was doing the seq > scan on 3 fields, so I did an index for the three fields and it then chose > an index scan and ran in 27 seconds. > > I also did adjust my defaults to much smaller numbers on shared buffers (per > the tidbits page recommendation like 8 meg for my memory size). I looked at > http://www.desknow.com/kb/idx/0/061/article/ which recommended doing a > vacuum verbose to determine the exact max_fsm_pages and I set the cache to > use 25% of my available memory per the recommendation on tid bits. Note that the effective_cache_size (if I've spelt it right) just tells PG what your cache size is. You should set it based on what "free" tells you about your system's use of memory. -- Richard Huxton Archonet Ltd