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: SQL Performance question

Re: SQL Performance question

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Thu, 05 Oct 2000 18:22:58 +0800
Message-ID: <39DC5682.7818@yahoo.com>

Dag Arne Matre wrote:
>
> If memory serves me right, this:
> ... WHERE EXISTS ( ....
> would normally perform better than
> ... WHERE <column> IN ( ...
>
> I have an example of the opposite, which is confirmed by EXPLAIN PLAN (there
> is a table scan in the EXISTS version). So, I wonder:
> - memory serves me wrong
> - this used to be true, but not anymore
> - this is normally true, it is probably just wrong for this exact statement
> - other?
>
> Oracle 8.0.5.
>
> TIA,
> D A

This typically used to be the case - optimiser improvements in Oracle means that its often smart enough to change a 'where in' to a join (which can be better than where-exists)

HTH

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk

We are born naked, wet and hungry...then things get worse
Received on Thu Oct 05 2000 - 05:22:58 CDT

Original text of this message

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