Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 9AAFB1337C04 for ; Wed, 23 Mar 2011 11:20:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 43594-04-2 for ; Wed, 23 Mar 2011 14:19:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp2.peak6.com (smtp2.peak6.com [38.98.137.9]) by mail.postgresql.org (Postfix) with ESMTP id A70C11337C11 for ; Wed, 23 Mar 2011 11:19:12 -0300 (ADT) X-AuditID: 0a02cb1e-b7bf8ae00000096d-28-4d8a01604fc3 Message-ID: <4D8A0160.6090708@peak6.com> Date: Wed, 23 Mar 2011 09:19:12 -0500 From: Shaun Thomas Reply-To: sthomas@peak6.com Organization: Peak6 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.7) Gecko/20100720 Lightning/1.0b2 Thunderbird/3.1.1 MIME-Version: 1.0 To: "tv@fuzzy.cz" CC: Adarsh Sharma , "pgsql-performance@postgresql.org" Subject: Re: Re-Reason of Slowness of Query References: <4D89BABF.4080806@orkash.com> <4D89F6E5.7010803@peak6.com> <557a8c61e87e5e54ae205daadd8f0ca4.squirrel@sq.gransy.com> In-Reply-To: <557a8c61e87e5e54ae205daadd8f0ca4.squirrel@sq.gransy.com> Content-Type: text/plain; charset="UTF-8"; format=flowed content-transfer-encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAZE= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/281 X-Sequence-Number: 42960 On 03/23/2011 09:16 AM, tv@fuzzy.cz wrote: > which means this is at least 8.4. Plus the 'distinct' step uses less than > 1% of total time, so even if you improve it the impact will be minimal. Haha. Noted. I guess I'm still on my original crusade against DISTINCT. I was pulling it out of so much old code it's been fused to my DNA. Actually, we're still on 8.2 so... :) -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 800 | Chicago IL, 60604 312-676-8870 sthomas@peak6.com ______________________________________________ See http://www.peak6.com/email_disclaimer.php for terms and conditions related to this email