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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: eliminating records not in (select id ... so SLOW?


  • From: Lennin Caro <lennin(dot)caro(at)yahoo(dot)com>
  • To: PostgreSQL <pgsql-general(at)postgresql(dot)org>, Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
  • Subject: Re: eliminating records not in (select id ... so SLOW?
  • Date: Thu, 31 Jul 2008 14:59:29 -0700 (PDT)
  • Message-id: <697670.19965.qm@web59507.mail.ac4.yahoo.com> <text/plain>



--- On Thu, 7/31/08, Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it> wrote:

> From: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
> Subject: [GENERAL] eliminating records not in (select id ... so SLOW?
> To: "PostgreSQL" <pgsql-general(at)postgresql(dot)org>
> Date: Thursday, July 31, 2008, 9:45 PM
> I'm doing something like:
> 
> delete from table1 where id not in (select id from table2).
> 
> both id are indexed.
> 
> table1 contains ~1M record table2 contains ~ 600K record
> and id is
> unique.
> 
> The box is a 2x dual core Xeon (below 2GHz) with 4Gb ram.
> Default debian etch setup.
> 
> It has been working for over 2h now.
> 
> Is it normal?
> 
> -- 
> Ivan Sergio Borgonovo
> http://www.webthatworks.it
> 
you recently run vacuum ? 

> -- 
> Sent via pgsql-general mailing list
> (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general


      




Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group