Re: NOT IN query takes forever - Mailing list pgsql-performance

From Christopher Kings-Lynne
Subject Re: NOT IN query takes forever
Date
Msg-id 41103CC5.7030207@familyhealth.com.au
Whole thread Raw
In response to Re: NOT IN query takes forever  ("Merlin Moncure" <merlin.moncure@rcsonline.com>)
List 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

pgsql-performance by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: Performance Bottleneck
Next
From: Martin Foster
Date:
Subject: Re: Performance Bottleneck