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 4E6FE53B23 for ; Thu, 7 Apr 2005 18:22:41 +0100 (BST) 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 46655-06 for ; Thu, 7 Apr 2005 17:22:40 +0000 (GMT) Received: from server07.icaen.uiowa.edu (server07.icaen.uiowa.edu [128.255.17.47]) by svr1.postgresql.org (Postfix) with ESMTP id DCAC653B31 for ; Thu, 7 Apr 2005 18:22:39 +0100 (BST) Received: from server11.icaen.uiowa.edu (server11.icaen.uiowa.edu [128.255.17.51]) by server07.icaen.uiowa.edu (8.13.3/8.12.9) with ESMTP id j37HMd4H016647; (envelope-from ) Thu, 7 Apr 2005 12:22:39 -0500 (CDT) Received: from [192.168.1.13] (12-215-118-172.client.mchsi.com [12.215.118.172]) (authenticated user=jfmeinel) by server11.icaen.uiowa.edu (8.13.2/smtp-serv-1.7) with ESMTP id j37HMb5p028039 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256); (envelope-from ) Thu, 7 Apr 2005 12:22:38 -0500 (CDT) Message-ID: <42556C5D.6060106@arbash-meinel.com> Date: Thu, 07 Apr 2005 12:22:37 -0500 From: John Arbash Meinel User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joel Fradkin Cc: "'Tom Lane'" , "'PostgreSQL Perform'" Subject: Re: Any way to speed this up? References: <007b01c53b95$450c5850$797ba8c0@jfradkin> In-Reply-To: <007b01c53b95$450c5850$797ba8c0@jfradkin> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig241C50A43AF95B0DB9B2D161" X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamav.icaen.uiowa.edu X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamav.icaen.uiowa.edu X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200504/170 X-Sequence-Number: 11567 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig241C50A43AF95B0DB9B2D161 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Joel Fradkin wrote: >Here is the result after putting it back to 4 the original value (I had done >that prior to your suggestion of using 2 or 3) to see what might change. >I also vacummed and thought I saw records deleted in associate, which I >found odd as this is a test site and no new records were added or deleted. > > Well, that looks 2x as fast, right? You might try SET enable_mergejoin TO off; Just to see if you can force a hash-join and see how long that takes. You might also try increasing work_mem. You can do that just in the current session with SET work_mem TO ....; John =:-> --------------enig241C50A43AF95B0DB9B2D161 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCVWxdJdeBCYSNAAMRAmO6AJ9QQ7SIo9cbqt305HO/k7KJSTg44gCeIkeT DDH9DlX/L+xMFFro3PVqa2o= =rUaL -----END PGP SIGNATURE----- --------------enig241C50A43AF95B0DB9B2D161--