Why don't you try using a leading or ordered hint to get oracle to use the smaller table first?
>From: [EMAIL PROTECTED] >Reply-To: [EMAIL PROTECTED] >To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]> >Subject: RE: why so much slower >Date: Wed, 05 Jun 2002 12:18:45 -0800 > >more info. It seemed just when I went from two to three tables in a join >there was a very substantial increase in elapsed time. I did join with one >large table and small codetable alone and performed like a champ. Hmmmm. >Any ideas? > >-----Original Message----- >Sent: Wednesday, June 05, 2002 3:03 PM >To: '[EMAIL PROTECTED]' > > > >Set sort_area_size to very large as 20Gb (obscene) amount of space >available. >Doing 2 large table outer joins returns results in .341 seconds - both >partitioned on same criteria >added one small codetable equijoin with one of the larger tables. There is >a foreign key to codetable and index that is unique. >Used hash join hint >Used nested loop hint > >Basically saw two large joins sort merged hash join then nested join to >smaller table - much much smaller codetable. > >NO matter what it seems query is much much slower - Any ideas? > > > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Mike Killough INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
