Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g571m6n04415
 for <oracle-l@naude.co.za>; Thu, 6 Jun 2002 21:48:16 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id KAA55354;
 Thu, 6 Jun 2002 10:43:39 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 0047646C; Thu, 06 Jun 2002 08:38:31 -0800
Message-ID: <F001.0047646C.20020606083831@fatcity.com>
Date: Thu, 06 Jun 2002 08:38:31 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Paula_Stankus@doh.state.fl.us
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Paula_Stankus@doh.state.fl.us
Subject: RE: why so much slower
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 71; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative;	boundary="----_=_NextPart_001_01C20D6F.985E4100"
------_=_NextPart_001_01C20D6F.985E4100
Content-Type: text/plain

Tried that

-----Original Message-----
Sent: Wednesday, June 05, 2002 7:19 PM
To: Multiple recipients of list ORACLE-L


Why don't you try using a leading or ordered hint to get oracle to use the 
smaller table first?


>From: Paula_Stankus@doh.state.fl.us
>Reply-To: ORACLE-L@fatcity.com
>To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
>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: 'ORACLE-L@fatcity.com'
>
>
>
>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: mwkillough@hotmail.com

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: ListGuru@fatcity.com (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).

------_=_NextPart_001_01C20D6F.985E4100
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: why so much slower</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Tried that</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Mike Killough [<A =
HREF=3D"mailto:mwkillough@hotmail.com">mailto:mwkillough@hotmail.com</A>=
]</FONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, June 05, 2002 7:19 PM</FONT>
<BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>Subject: RE: why so much slower</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Why don't you try using a leading or ordered hint to =
get oracle to use the </FONT>
<BR><FONT SIZE=3D2>smaller table first?</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>&gt;From: Paula_Stankus@doh.state.fl.us</FONT>
<BR><FONT SIZE=3D2>&gt;Reply-To: ORACLE-L@fatcity.com</FONT>
<BR><FONT SIZE=3D2>&gt;To: Multiple recipients of list ORACLE-L =
&lt;ORACLE-L@fatcity.com&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;Subject: RE: why so much slower</FONT>
<BR><FONT SIZE=3D2>&gt;Date: Wed, 05 Jun 2002 12:18:45 -0800</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;more info.&nbsp; It seemed just when I went from =
two to three tables in a join</FONT>
<BR><FONT SIZE=3D2>&gt;there was a very substantial increase in elapsed =
time.&nbsp; I did join with one</FONT>
<BR><FONT SIZE=3D2>&gt;large table and small codetable alone and =
performed like a champ.&nbsp; Hmmmm.</FONT>
<BR><FONT SIZE=3D2>&gt;Any ideas?</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt;Sent: Wednesday, June 05, 2002 3:03 PM</FONT>
<BR><FONT SIZE=3D2>&gt;To: 'ORACLE-L@fatcity.com'</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;Set sort_area_size to very large as 20Gb =
(obscene) amount of space</FONT>
<BR><FONT SIZE=3D2>&gt;available.</FONT>
<BR><FONT SIZE=3D2>&gt;Doing 2 large table outer joins returns results =
in .341 seconds - both</FONT>
<BR><FONT SIZE=3D2>&gt;partitioned on same criteria</FONT>
<BR><FONT SIZE=3D2>&gt;added one small codetable equijoin with one of =
the larger tables.&nbsp; There is</FONT>
<BR><FONT SIZE=3D2>&gt;a foreign key to codetable and index that is =
unique.</FONT>
<BR><FONT SIZE=3D2>&gt;Used hash join hint</FONT>
<BR><FONT SIZE=3D2>&gt;Used nested loop hint</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;Basically saw two large joins sort merged hash =
join then nested join to</FONT>
<BR><FONT SIZE=3D2>&gt;smaller table - much much smaller =
codetable.</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;NO matter what it seems query is much much =
slower - Any ideas?</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT =
SIZE=3D2>_______________________________________________________________=
__</FONT>
<BR><FONT SIZE=3D2>Chat with friends online, try MSN Messenger: <A =
HREF=3D"http://messenger.msn.com" =
TARGET=3D"_blank">http://messenger.msn.com</A></FONT>
</P>

<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Please see the official ORACLE-L FAQ: <A =
HREF=3D"http://www.orafaq.com" =
TARGET=3D"_blank">http://www.orafaq.com</A></FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Author: Mike Killough</FONT>
<BR><FONT SIZE=3D2>&nbsp; INET: mwkillough@hotmail.com</FONT>
</P>

<P><FONT SIZE=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858) =
538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
-----</FONT>
<BR><FONT SIZE=3D2>To REMOVE yourself from this mailing list, send an =
E-Mail message</FONT>
<BR><FONT SIZE=3D2>to: ListGuru@fatcity.com (note EXACT spelling of =
'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>the message BODY, include a line containing: UNSUB =
ORACLE-L</FONT>
<BR><FONT SIZE=3D2>(or the name of mailing list you want to be removed =
from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>also send the HELP command for other information =
(like subscribing).</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C20D6F.985E4100--
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: Paula_Stankus@doh.state.fl.us

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: ListGuru@fatcity.com (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).

