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 g572n9808321
 for <oracle-l@naude.co.za>; Thu, 6 Jun 2002 22:49:09 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id LAA62998;
 Thu, 6 Jun 2002 11:43:51 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 0047687C; Thu, 06 Jun 2002 11:30:27 -0800
Message-ID: <F001.0047687C.20020606113027@fatcity.com>
Date: Thu, 06 Jun 2002 11:30:27 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Igor Neyman" <ineyman@perceptron.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Igor Neyman" <ineyman@perceptron.com>
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_000_0071_01C20D67.380F8910"
------=_NextPart_000_0071_01C20D67.380F8910
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

RE: why so much slowerPaula,

Try to join partitioned tables inside in-line view (since you are =
saying, that performance of this join is ok), and add small codetable in =
"outer" select with NO_MERGE hint.

Igor Neyman, OCP DBA
ineyman@perceptron.com

  ----- Original Message -----=20
  From: Paula_Stankus@doh.state.fl.us=20
  To: Multiple recipients of list ORACLE-L=20
  Sent: Thursday, June 06, 2002 12:38 PM
  Subject: RE: why so much slower


  Tried that=20

  -----Original Message-----=20
  From: Mike Killough [mailto:mwkillough@hotmail.com]=20
  Sent: Wednesday, June 05, 2002 7:19 PM=20
  To: Multiple recipients of list ORACLE-L=20
  Subject: RE: why so much slower=20



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



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





  _________________________________________________________________=20
  Chat with friends online, try MSN Messenger: http://messenger.msn.com=20

  --=20
  Please see the official ORACLE-L FAQ: http://www.orafaq.com=20
  --=20
  Author: Mike Killough=20
    INET: mwkillough@hotmail.com=20

  Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051=20
  San Diego, California        -- Public Internet access / Mailing Lists =

  --------------------------------------------------------------------=20
  To REMOVE yourself from this mailing list, send an E-Mail message=20
  to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in=20
  the message BODY, include a line containing: UNSUB ORACLE-L=20
  (or the name of mailing list you want to be removed from).  You may=20
  also send the HELP command for other information (like subscribing).=20


------=_NextPart_000_0071_01C20D67.380F8910
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: why so much slower</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Paula,</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Try to join partitioned tables inside in-line view =
(since you=20
are saying, that performance of this join is ok), and add small =
codetable in=20
"outer" select with NO_MERGE hint.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV>Igor Neyman, OCP DBA<BR><A=20
href=3D"mailto:ineyman@perceptron.com">ineyman@perceptron.com</A><BR></DI=
V>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3DPaula_Stankus@doh.state.fl.us=20
  =
href=3D"mailto:Paula_Stankus@doh.state.fl.us">Paula_Stankus@doh.state.fl.=
us</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3DORACLE-L@fatcity.com=20
  href=3D"mailto:ORACLE-L@fatcity.com">Multiple recipients of list =
ORACLE-L</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, June 06, 2002 =
12:38=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: why so much =
slower</DIV>
  <DIV><BR></DIV>
  <P><FONT size=3D2>Tried that</FONT> </P>
  <P><FONT size=3D2>-----Original Message-----</FONT> <BR><FONT =
size=3D2>From: Mike=20
  Killough [<A=20
  =
href=3D"mailto:mwkillough@hotmail.com">mailto:mwkillough@hotmail.com</A>]=
</FONT>=20
  <BR><FONT size=3D2>Sent: Wednesday, June 05, 2002 7:19 PM</FONT> =
<BR><FONT=20
  size=3D2>To: Multiple recipients of list ORACLE-L</FONT> <BR><FONT=20
  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=20
  oracle to use the </FONT><BR><FONT size=3D2>smaller table =
first?</FONT> </P><BR>
  <P><FONT size=3D2>&gt;From: <A=20
  =
href=3D"mailto:Paula_Stankus@doh.state.fl.us">Paula_Stankus@doh.state.fl.=
us</A></FONT>=20
  <BR><FONT size=3D2>&gt;Reply-To: ORACLE-L@fatcity.com</FONT> <BR><FONT =

  size=3D2>&gt;To: Multiple recipients of list ORACLE-L=20
  &lt;ORACLE-L@fatcity.com&gt;</FONT> <BR><FONT size=3D2>&gt;Subject: =
RE: why so=20
  much slower</FONT> <BR><FONT size=3D2>&gt;Date: Wed, 05 Jun 2002 =
12:18:45=20
  -0800</FONT> <BR><FONT size=3D2>&gt;</FONT> <BR><FONT =
size=3D2>&gt;more=20
  info.&nbsp; It seemed just when I went from two to three tables in a=20
  join</FONT> <BR><FONT size=3D2>&gt;there was a very substantial =
increase in=20
  elapsed time.&nbsp; I did join with one</FONT> <BR><FONT =
size=3D2>&gt;large=20
  table and small codetable alone and performed like a champ.&nbsp;=20
  Hmmmm.</FONT> <BR><FONT size=3D2>&gt;Any ideas?</FONT> <BR><FONT=20
  size=3D2>&gt;</FONT> <BR><FONT size=3D2>&gt;-----Original =
Message-----</FONT>=20
  <BR><FONT size=3D2>&gt;Sent: Wednesday, June 05, 2002 3:03 PM</FONT> =
<BR><FONT=20
  size=3D2>&gt;To: 'ORACLE-L@fatcity.com'</FONT> <BR><FONT =
size=3D2>&gt;</FONT>=20
  <BR><FONT size=3D2>&gt;</FONT> <BR><FONT size=3D2>&gt;</FONT> =
<BR><FONT=20
  size=3D2>&gt;Set sort_area_size to very large as 20Gb (obscene) amount =
of=20
  space</FONT> <BR><FONT size=3D2>&gt;available.</FONT> <BR><FONT =
size=3D2>&gt;Doing=20
  2 large table outer joins returns results in .341 seconds - =
both</FONT>=20
  <BR><FONT size=3D2>&gt;partitioned on same criteria</FONT> <BR><FONT=20
  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=20
  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=20
  size=3D2>&gt;</FONT> <BR><FONT size=3D2>&gt;Basically saw two large =
joins sort=20
  merged hash join then nested join to</FONT> <BR><FONT =
size=3D2>&gt;smaller table=20
  - much much smaller codetable.</FONT> <BR><FONT size=3D2>&gt;</FONT> =
<BR><FONT=20
  size=3D2>&gt;NO matter what it seems query is much much slower - Any=20
  ideas?</FONT> <BR><FONT size=3D2>&gt;</FONT> <BR><FONT =
size=3D2>&gt;</FONT>=20
  <BR><FONT size=3D2>&gt;</FONT> </P><BR><BR><BR>
  <P><FONT=20
  =
size=3D2>________________________________________________________________=
_</FONT>=20
  <BR><FONT size=3D2>Chat with friends online, try MSN Messenger: <A =
target=3D_blank=20
  href=3D"http://messenger.msn.com">http://messenger.msn.com</A></FONT> =
</P>
  <P><FONT size=3D2>-- </FONT><BR><FONT size=3D2>Please see the official =
ORACLE-L=20
  FAQ: <A target=3D_blank=20
  href=3D"http://www.orafaq.com">http://www.orafaq.com</A></FONT> =
<BR><FONT=20
  size=3D2>-- </FONT><BR><FONT size=3D2>Author: Mike Killough</FONT> =
<BR><FONT=20
  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,=20
  California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public =
Internet access=20
  / Mailing Lists</FONT> <BR><FONT=20
  =
size=3D2>----------------------------------------------------------------=
----</FONT>=20
  <BR><FONT size=3D2>To REMOVE yourself from this mailing list, send an =
E-Mail=20
  message</FONT> <BR><FONT size=3D2>to: ListGuru@fatcity.com (note EXACT =
spelling=20
  of 'ListGuru') and in</FONT> <BR><FONT size=3D2>the message BODY, =
include a line=20
  containing: UNSUB ORACLE-L</FONT> <BR><FONT size=3D2>(or the name of =
mailing=20
  list you want to be removed from).&nbsp; You may</FONT> <BR><FONT =
size=3D2>also=20
  send the HELP command for other information (like subscribing).</FONT> =

</P></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0071_01C20D67.380F8910--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Igor Neyman
  INET: ineyman@perceptron.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).

