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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Delete Performance Issue

Re: Delete Performance Issue

From: Don Doo <doodon_at_gmail.com>
Date: Thu, 21 Dec 2006 13:25:26 -0500
Message-ID: <36f8e4b00612211025t4fcca706id9852e4d6ff1dfc8@mail.gmail.com>


Andrew,

There is no change in the execution plan. Same plan as before

0        DELETE STATEMENT
1  0     DELETE
2  1    HASH JOIN                              4132
3 2 VIEW
4 3 SORT UNIQUE
5  4    HASH JOIN                                13
6  5    TABLE ACCESS FULL C_RUN                   6
7  5    NESTED LOOPS                              6
8  7    TABLE ACCESS BY INDEX ROWID C_STAGE      1
9  8     INDEX UNIQUE SCAN C_STAGE_AK            1
10 7   TABLE ACCESS FULL C_SUMMARY               5
11 2   TABLE ACCESS FULL C_TRACE                4113


On 12/21/06, Kerber, Andrew <Andrew.Kerber_at_umb.com> wrote:
>
> Could you rewrite the subquery using exists and accomplish the same
> purpose? Something like this (may not be quite right), the idea is to only
> hit the first matching record in the subselect, instead of getting all of
> them:
>
>
>
> delete from cs_trace cs
> where cs.targetperiod= 200612
> and exists (select
> RunSeq from C_Run pr,
> C_Summary ss,
> C_Stage st
> where cs.RunSeq = ss.RunSeq
> and ss.stageType = st.stageType
> and st.name = 'load'
> and pr.period = 361
> and ss.Active = 'yes')
>
>
>
> Andrew W. Kerber
> Oracle DBA
> UMB
> 816-860-3921
> andrew.kerber_at_umb.com
>
>
>
> "If at first you dont succeed, dont take up skydiving"
>
> -----Original Message-----
> *From:* oracle-l-bounce_at_freelists.org [mailto:
> oracle-l-bounce_at_freelists.org] *On Behalf Of *Rajeev Prabhakar
> *Sent:* Thursday, December 21, 2006 11:55 AM
> *To:* doodon_at_gmail.com
> *Cc:* oracle-l_at_freelists.org
> *Subject:* Re: Delete Performance Issue
>
>
>
> Hi Don
>
>
>
> One of the things you could try is parallel DML if
>
> your database server is not too cpu bound.
>
>
>
> Plus, verify that relevant indices are present.
>
>
>
> HTH
>
> -Rajeev
>
>
>
> On 12/21/06, *Don Doo* <doodon_at_gmail.com> wrote:
>

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Dec 21 2006 - 12:25:26 CST

Original text of this message

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