Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7E6A41337B3E for ; Tue, 8 Mar 2011 07:31:51 -0400 (AST) 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 95137-07 for ; Tue, 8 Mar 2011 11:31:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 223A7133798E for ; Tue, 8 Mar 2011 07:31:44 -0400 (AST) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Pwv8h-00029t-QE for pgsql-performance@postgresql.org; Tue, 08 Mar 2011 03:31:43 -0800 Date: Tue, 8 Mar 2011 03:31:43 -0800 (PST) From: sverhagen To: pgsql-performance@postgresql.org Message-ID: <1299583903805-3413814.post@n5.nabble.com> In-Reply-To: References: <1299024855300-3405914.post@n5.nabble.com> <4D6DBC63.7080109@squeakycode.net> <1299111156142-3407330.post@n5.nabble.com> Subject: Re: Performance trouble finding records through related records MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.422 tagged_above=-10 required=5 tests=BAYES_00=-1.9, SARE_BAYES_5x7=0.6, SARE_BAYES_6x7=0.6, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201103/87 X-Sequence-Number: 42766 Merlin Moncure-2 wrote: > > > 8.3? try converting the above to WHERE EXISTS or (even better) a JOIN... > > Thanks for that. But in my Mar 03, 2011; 10:19am post I already broke it down to the barebones with some variations, among which JOIN. The EXISTS IN variation was so poor that I left that one out. Best regards, Sander. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Performance-trouble-finding-records-through-related-records-tp3405914p3413814.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com.