Jurijs You are correct. It worked. Now it is doing 9 LIOs instead of 18,800 LIOs. Thanks you so much. ----- Original Message ----- From: J.Velikanovs@xxxxxxxx Date: Friday, August 6, 2004 11:12 am Subject: Re: RE: Time to read 6000 (block size 2k) blocks > Rows Row Source Operation > ------- --------------------------------------------------- > 1 SORT UNIQUE > 1 COUNT STOPKEY > 1 NESTED LOOPS > 4766 TABLE ACCESS BY INDEX ROWID PROFILEDUSER (it has > 450,000 rows) > 4767 INDEX RANGE SCAN (PROFILEDUSER_IX03) > 1 TABLE ACCESS BY INDEX ROWID EXTENDEDATTRIBUTES (it has > 15,000 > rows) > 9530 INDEX UNIQUE SCAN (ATTRIBUTES_PK) > > The idea is: to start NL with EXTENDEDATTRIBUTES table. Bacause in > SQL you > have E.CUSTOMERID = 'ABCDEFGH', and this seems ID value, which > will return > 1 row, instead 4766 loops thought PROFILEDUSER. > > Try to get EXTENDEDATTRIBUTES as driven table. Or I am wrong ? > > > Jurijs > +371 9268222 (+2 GMT) ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx put 'unsubscribe' in the subject line. -- Archives are at //www.freelists.org/archives/oracle-l/ FAQ is at //www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------