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 -> How to get a Hash Anti-Join to take?

How to get a Hash Anti-Join to take?

From: Ryan Gaffuri <rgaffuri_at_cox.net>
Date: 2 May 2003 11:19:10 -0700
Message-ID: <1efdad5b.0305021019.75cbe57b@posting.google.com>


Im using the Guy Harrison tuning book and he says the hash anti-join is the fastest. What am I doing wrong? Im doing a nested loop index lookup?

This is what I Do:

Alter Session Set always_anti_join = HASH

SELECT 1
  FROM TAB1
  WHERE COL1 NOT IN
(SELECT /*+ HASH_AJ */ to_char(col2)

   from tab2

Dont have the plan table in front of me. Its just a nested loop join with Index lookups. Any idea why? Received on Fri May 02 2003 - 13:19:10 CDT

Original text of this message

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