Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> [SOLVED for good] performance tuning questions: replace IN (values) by JOIN
>> I see no need for a sub-query;
I've kept my sub-queries but remove the index. This gave me an improvement from 18 to 6 secs. Thanks again Sybrand!
I saw that there was still a full table access on the BAG_LOG table, and now that I understand how thing works, I've added an index on the BAG_ID Foreign Key in the BAG_LOG table as it wasn't there. Strange as it was my understanding that Foreign Keys always have indexes on them in Oracle...
Now I have fast (about 0.02 sec) and correct results!
Great.
Thanks all, and sorry for answering to myself.
J. Received on Mon Sep 01 2003 - 02:56:33 CDT