Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> NOT IN conditions are extremly SLOW
Hello!
I would like to execute following statement
SELECT count(*) FROM TABLE_A WHERE COL_A || '|' || COL_B NOT IN (SELECT COL_A || '|' || COL_B FROM TABLE_B); TABLE_A consists of 37.000 rows. The statement takes over 10 mins.
I have set analyzed indexes to perform the statement but it doesn't help anyway.
Is it possible to modify the statement to get the same result with much better execution performance?
Regards,
Robert
Received on Thu Oct 06 2005 - 02:14:27 CDT
![]() |
![]() |