Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Improve this querry!?
Lothar Armbruester <lothar.armbruester_at_t-online.de> wrote in message
> Hello Mark,
> maybe you gain some performance using a hash antijoin whith your NOT IN
> clause. Have a look at the docs. Since NOT IN is one of the slowest
> operations one can do with a database, this may boost your performance.
> The HASH_AJ hint has some prerequisites to work properly though.
Lothar,
on my test set with 1m rows in both tables, the CBO chose the hash join for each query shown above, including Mark's original query with the NOT IN. Have to mention this is on 9.2.0.3 though.
jan Received on Mon Nov 10 2003 - 15:39:32 CST