oracle not in query takes longer than in query -


i have 2 tables each has 230000 records. when make query:

select count(*)  table1  field1 in (select field2 table2).  

it takes 0.2 second.

if use same query changing in not in

select count(*)  table1  field1 not in (select field2 table2).  

it never ends.

why ?

its better user not exists, not in uses row search takes long


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -