Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group