Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: need help tuning a very large delete

Re: need help tuning a very large delete

From: Noons <wizofoz2k_at_yahoo.com.au>
Date: Thu, 18 Sep 2003 22:29:06 +1000
Message-ID: <3f69a50b$1$13416$afc38c87@news.optusnet.com.au>


"Ryan Gaffuri" <rgaffuri_at_cox.net> wrote in message news:1efdad5b.0309171145.77216dac_at_posting.google.com...
> Stage Table has 17 million records with Delete_column = 'Y';
>
> MAster has 27 million records.
>
> so I need to
> delete from master
> where master.pk = stage.pk
> and stage.pk = 'Y';
>
> i tried writing a 'create table as' with a 'not exists' and was
> running for 8 hours. killed it. didnt even go to 'killed' status which
> means the DML hadnt even started it.
>
> I tried doing the following: but cant get the outer join right. Is
> that faster than a minus?
>
> any ideas?

insert into temp dump Select from master where it does NOT match stage,
then
truncate master,
load back into master from temp dump?

If you can afford the period where master is not available.

-- 
Cheers
Nuno Souto
wizofoz2k_at_yahoo.com.au.nospam
Received on Thu Sep 18 2003 - 07:29:06 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US