Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 29985 invoked from network); 8 Jan 2008 15:59:02 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-69-64-49-119.inaddr.intergenia.de with SMTP; 8 Jan 2008 15:58:57 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7F9A77E168E;
 Tue,  8 Jan 2008 16:58:47 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 27066-04; Tue, 8 Jan 2008 16:58:47 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E9F0E7E15ED;
 Tue,  8 Jan 2008 16:58:46 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 08 Jan 2008 16:10:52 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1F5797E0563
 for <oracle-l@freelists.org>; Tue,  8 Jan 2008 16:10:52 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 20104-04 for <oracle-l@freelists.org>;
 Tue, 8 Jan 2008 16:10:52 -0500 (EST)
Received: from taro.utanet.at (taro.utanet.at [213.90.36.45])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 86E7E7E03B7
 for <oracle-l@freelists.org>; Tue,  8 Jan 2008 16:10:50 -0500 (EST)
Received: from andrea.utanet.at ([213.90.36.55])
 by taro.utanet.at with esmtp (Exim 4.69)
 (envelope-from <jaromir@db-nemec.com>)
 id 1JCLii-0008Vu-KM; Tue, 08 Jan 2008 22:10:48 +0100
Received: from dsl-153-244.utaonline.at ([62.218.153.244] helo=ADLA)
 by andrea.utanet.at with smtp (Exim 4.50)
 id 1JCLii-0007qN-9F; Tue, 08 Jan 2008 22:10:48 +0100
Message-ID: <06d701c8523b$3869b920$3e02a8c0@ADLA>
From: "jaromir nemec" <jaromir@db-nemec.com>
To: <greg@structureddata.org>,
 <moabrivers@gmail.com>,
 <tim@evdbt.com>
Cc: <oracle-l@freelists.org>
References: <b604d45b0801080731y2a8f8a15g969c59a31bc62b33@mail.gmail.com> <a9c093440801081004v11443832gff16dc97aca664d1@mail.gmail.com>
Subject: Re: Partitioned Table Slower - Where's Tim Gorman when you need him?
Date: Tue, 8 Jan 2008 22:12:44 +0100
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_06D4_01C85243.98349B10"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-archive-position: 4363
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: jaromir@db-nemec.com
Precedence: normal
Reply-to: jaromir@db-nemec.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
------=_NextPart_000_06D4_01C85243.98349B10
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

HI,

> In trying to see if
> partitioning them off to their own partition with local prefixed =
indexes
> matching the indexes of the original heap table

any chance that due to "prefixing" of the index on the partitioned table =
the range scan is forced to scan the whole partition?
i.e.  index on the partitioned table is defined (col_a,col_b)  and on =
the non-partitioned table only (col_b)
The predicate col_a =3D 'X' returns 2.5M rows with is approximately 30% =
of your 8M rows, i.e. the target data.
Verify that the index ASN_ORG_IX is defined identically on both tables =
except for the LOCAL keyword on the partitioned table.=20


regards,

Jaromir D.B. Nemec
  ----- Original Message -----=20
  From: Greg Rahn=20
  To: moabrivers@gmail.com=20
  Cc: oracle-l@freelists.org=20
  Sent: Tuesday, January 08, 2008 7:04 PM
  Subject: Re: Partitioned Table Slower - Where's Tim Gorman when you =
need him?


  It appears that there is a different number of rows being returned =
from the ASN table.  Why is this?

  Rows     Row Source Operation
  -------  ---------------------------------------------------=20
  // non partitioned
    51560         INDEX RANGE SCAN ASN_ORG_IX (cr=3D323 pr=3D0 pw=3D0 =
time=3D464207 us)
  // partitioned
  2540907          INDEX RANGE SCAN ASN_PART_ORG_IX PARTITION: 1 1 =
(cr=3D9988 pr=3D0 pw=3D0 time=3D22868284 us)=20



------=_NextPart_000_06D4_01C85243.98349B10
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>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3243" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>HI,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt; In trying to see if<BR>&gt; =
partitioning them=20
off to their own partition with local prefixed indexes<BR>&gt; matching =
the=20
indexes of the original heap table</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>any chance that due to "prefixing" of =
the index on=20
the partitioned table the range scan is forced to scan the whole=20
partition?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i.e.&nbsp; index on the partitioned =
table is=20
defined (col_a,col_b)&nbsp; and on the non-partitioned table only=20
(col_b)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The predicate col_a =3D 'X' returns =
2.5M rows with is=20
<SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: =
'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-language: DE; =
mso-bidi-language: AR-SA">approximately=20
</SPAN>30% of your 8M rows, i.e. the target data.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Verify that the index ASN_ORG_IX is =
defined=20
identically on both tables except for the LOCAL keyword on the =
partitioned=20
table. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Jaromir D.B. Nemec</FONT></DIV>
<BLOCKQUOTE=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=3Dgreg@structureddata.org =
href=3D"mailto:greg@structureddata.org">Greg=20
  Rahn</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dmoabrivers@gmail.com=20
  href=3D"mailto:moabrivers@gmail.com">moabrivers@gmail.com</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A =
title=3Doracle-l@freelists.org=20
  href=3D"mailto:oracle-l@freelists.org">oracle-l@freelists.org</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, January 08, 2008 =
7:04=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: Partitioned Table =
Slower -=20
  Where's Tim Gorman when you need him?</DIV>
  <DIV><BR></DIV><SPAN style=3D"FONT-FAMILY: courier new,monospace">It =
appears=20
  that there is a different number of rows being returned from the ASN=20
  table.&nbsp; Why is this?</SPAN><BR=20
  style=3D"FONT-FAMILY: courier new,monospace"><BR=20
  style=3D"FONT-FAMILY: courier new,monospace"><SPAN=20
  style=3D"FONT-FAMILY: courier =
new,monospace">Rows&nbsp;&nbsp;&nbsp;&nbsp; Row=20
  Source Operation</SPAN><BR style=3D"FONT-FAMILY: courier =
new,monospace"><SPAN=20
  style=3D"FONT-FAMILY: courier new,monospace">-------&nbsp;=20
  --------------------------------------------------- </SPAN><BR=20
  style=3D"FONT-FAMILY: courier new,monospace"><SPAN=20
  style=3D"FONT-FAMILY: courier new,monospace">// non </SPAN><SPAN=20
  style=3D"FONT-FAMILY: courier new,monospace">partitioned</SPAN><BR=20
  style=3D"FONT-FAMILY: courier new,monospace"><SPAN=20
  style=3D"FONT-FAMILY: courier new,monospace">&nbsp;=20
  51560&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INDEX RANGE SCAN =

  ASN_ORG_IX (cr=3D323 pr=3D0 pw=3D0 time=3D464207 us)</SPAN><BR=20
  style=3D"FONT-FAMILY: courier new,monospace"><SPAN=20
  style=3D"FONT-FAMILY: courier new,monospace">// partitioned</SPAN><BR=20
  style=3D"FONT-FAMILY: courier new,monospace"><SPAN=20
  style=3D"FONT-FAMILY: courier =
new,monospace">2540907&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
  INDEX RANGE SCAN ASN_PART_ORG_IX PARTITION: 1 1 (cr=3D9988 pr=3D0 =
pw=3D0=20
  time=3D22868284 us)</SPAN> <BR style=3D"FONT-FAMILY: courier =
new,monospace"><BR=20
  style=3D"FONT-FAMILY: courier new,monospace"><BR=20
  style=3D"FONT-FAMILY: courier =
new,monospace"></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_06D4_01C85243.98349B10--

--
http://www.freelists.org/webpage/oracle-l


