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

Home -> Community -> Usenet -> c.d.o.misc -> Re: optimizing in delete-statement

Re: optimizing in delete-statement

From: Daniel Roy <danielroy10_at_hotmail.com>
Date: 7 Feb 2003 16:26:28 -0800
Message-ID: <1b061893.0302071626.44395cf7@posting.google.com>


Hard to give any advice with the kind of info you provided to us, but assuming that you use CBO and have an index on tUserXorganizer(ItemId), try:

DELETE FROM tRoute
WHERE exists
(
SELECT /*+ hash_sj */ 1
FROM tUserXorganizer
WHERE tRoute.RouteId = ItemId AND Type = :1 AND FKUserId = :2 )
;

Daniel Received on Fri Feb 07 2003 - 18:26:28 CST

Original text of this message

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