Ethan,

A NOT EXISTS can be very expensive if returning large numbers
of rows from the driving table.  It's a correlated subquery as 
Stephane F. pointed out in another post.

Jared







"Post, Ethan" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
 11/15/2002 10:32 AM
 Please respond to ORACLE-L

 
        To:     Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
        cc: 
        Subject:        RE: RE: RE: CONSISTANT GETS


Hold the press.  NOT IN better than NOT EXISTS?  Is this theory or fact? 
If
so is there any supporting evidence out there?  This is the first I have
heard of this.

Thanks!

-----Original Message-----
Sent: Friday, November 15, 2002 11:35 AM
To: Multiple recipients of list ORACLE-L


Jerry,

I suspect that the improvments are more likely due to your
rewriting the WHERE clause rather than the use of NOT EXISTS.

Especially if the database were 9i, where NOT IN actually
seems get a better execution path than NOT EXISTS.

That original WHERE clause is really a piece of work.

Jared



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Post, Ethan
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to