Re: NOT IN query takes forever

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: Marius Andreiana <mandreiana(at)rdslink(dot)ro>, pgsql-performance(at)postgresql(dot)org
Subject: Re: NOT IN query takes forever
Date: 2004-08-04 01:32:53
Message-ID: 41103CC5.7030207@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

> explain analyze actually runs the query to do timings. Just run explain
> and see what you come up with. More than likely there is a nestloop in
> there which is causing the long query time.
>
> Try bumping up shared buffers some and sort mem as much as you safely
> can.

Just use an EXISTS query I suggest.

Chris

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jay 2004-08-04 02:28:45 trouble with query
Previous Message Scott Marlowe 2004-08-04 00:25:57 Re: trash talk

Browse pgsql-performance by date

  From Date Subject
Next Message Martin Foster 2004-08-04 03:49:11 Re: Performance Bottleneck
Previous Message Joshua D. Drake 2004-08-03 18:52:28 Re: Performance Bottleneck