Re: High cost of ... where ... not in (select ...)

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Aaron Turner <synfinatic(at)gmail(dot)com>
Cc: pgsql-performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: High cost of ... where ... not in (select ...)
Date: 2009-06-16 21:37:50
Message-ID: 20090616213750.GN7519@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Aaron Turner escribió:
> I'm trying to figure out how to optimize this query (yes, I ran vacuum/analyze):
>
> musecurity=# explain DELETE FROM muapp.pcap_store WHERE pcap_storeid
> NOT IN (SELECT pcap_storeid FROM muapp.pcap_store_log);

What PG version is this?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Aaron Turner 2009-06-16 23:39:15 Re: High cost of ... where ... not in (select ...)
Previous Message Aaron Turner 2009-06-16 21:28:19 High cost of ... where ... not in (select ...)