Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 28655 invoked from network); 10 Dec 2007 16:03:34 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 10 Dec 2007 16:03:34 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 40CD97D6760;
 Mon, 10 Dec 2007 17:03:34 -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 31550-06; Mon, 10 Dec 2007 17:03:34 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A45AB7D63F3;
 Mon, 10 Dec 2007 17:03:33 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Mon, 10 Dec 2007 16:16:37 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 674B17D5FA8
 for <oracle-l@freelists.org>; Mon, 10 Dec 2007 16:16:37 -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 17359-03 for <oracle-l@freelists.org>;
 Mon, 10 Dec 2007 16:16:37 -0500 (EST)
Received: from troll.tpk.net (mail.tpk.net [216.107.198.11])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7C63A7D5CF4
 for <oracle-l@freelists.org>; Mon, 10 Dec 2007 16:16:35 -0500 (EST)
Received: from MWF600XL (216-107-223-2.RightSizing.tpk.static.cust.seg.net [216.107.223.2])
 by troll.tpk.net (8.13.6/8.12.11) with ESMTP id lBALGStC005997;
 Mon, 10 Dec 2007 16:16:33 -0500
From: "Mark W. Farnham" <mwf@rsiz.com>
To: <Josh.Collier@banfield.net>, <oracle-l@freelists.org>
References: <578806DDE66A3A45916740EB73C6982AB42BB5D391@M1EXCHANGE01.mmi.local>
Subject: RE: Operations that perform multiblock I/O and cluster factor
Date: Mon, 10 Dec 2007 16:18:12 -0500
Message-ID: <009c01c83b72$2c499730$1100a8c0@rsiz.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_009D_01C83B48.43738F30"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
In-Reply-To: <578806DDE66A3A45916740EB73C6982AB42BB5D391@M1EXCHANGE01.mmi.local>
X-archive-position: 3823
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: mwf@rsiz.com
Precedence: normal
Reply-to: mwf@rsiz.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_009D_01C83B48.43738F30
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Sounds like a slightly twisted restatement of the fact that some things that
could logically be done as an index range scan are converted to a FFS
because the optimizer determines it will be cheaper to read the whole thing
than to walk the tree for the required range. Thus having been converted to
a FFS, you'll see scattered reads when you thought it might be doing
sequential reads to service what is logically a range scan.

 

If your co-worker has a case where what you reported was contended can be
shown, I'd like to see it. I hope there is more light than heat in this
debate. I'm not clear how Oracle would guess which blocks to multiblock read
to perform an index range scan, unless it reads them all, which it should
have reported as a FFS to begin with. 

 

  _____  

From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org]
On Behalf Of Josh Collier
Sent: Monday, December 10, 2007 2:15 PM
To: oracle-l@freelists.org
Subject: Operations that perform multiblock I/O and cluster factor

 

Hi,

 

Having a bit of a debate with a peer. Perhaps you can help me. 

 

Its my understanding that the only i/o operations that trigger multiblock
I/O, i.e. db file scattered read i/o that is influenced by the multi block
read count init parameter, are as follows

1. full table scan

2. index fast full scan

 

All other block access paths use db file sequential read, aka single block
reads from the disk. 

 

Are there any other access paths that are served by multiblock I/O? My
co-worker contends:  If the range scan is not a full scan, the query
optimizer will decide whether to use a scattered read depending on the
fraction of rows in the scan and the cluster factor of the index. 

 

I'm very curious about this because there isn't clear documentation anywhere
about this. 

 

Thanks,

 

Josh C. 

 


------=_NextPart_000_009D_01C83B48.43738F30
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.emailquote, li.emailquote, div.emailquote
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:1.0pt;
	border:none;
	padding:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>
<!-- converted from rtf -->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Sounds like a slightly twisted =
restatement
of the fact that some things that could logically be done as an index =
range
scan are converted to a FFS because the optimizer determines it will be =
cheaper
to read the whole thing than to walk the tree for the required range. =
Thus
having been converted to a FFS, you&#8217;ll see scattered reads when =
you
thought it might be doing sequential reads to service what is logically =
a range
scan.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>If your co-worker has a case where =
what
you reported was contended can be shown, I&#8217;d like to see it. I =
hope there
is more light than heat in this debate. I&#8217;m not clear how Oracle =
would
guess which blocks to multiblock read to perform an index range scan, =
unless it
reads them all, which it should have reported as a FFS to begin with. =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] =
<b><span
style=3D'font-weight:bold'>On Behalf Of </span></b>Josh Collier<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, December =
10, 2007
2:15 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
oracle-l@freelists.org<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Operations that =
perform
multiblock I/O and cluster factor</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Having a bit of a debate with a peer. Perhaps you can =
help
me. <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Its my understanding that the only i/o operations =
that
trigger multiblock I/O, i.e. db file scattered read i/o that is =
influenced by
the multi block read count init parameter, are as =
follows<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>1. full table scan<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>2. index fast full scan<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>All other block access paths use db file sequential =
read,
aka single block reads from the disk. <o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Are there any other access paths that are served by
multiblock I/O? My co-worker contends:&nbsp; </span></font><font =
size=3D2
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>If
the range scan is not a full scan, the query optimizer will decide =
whether to
use a scattered read depending on the fraction of rows in the scan and =
the
cluster factor of the index. </span></font><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>&nbsp;</span></font><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>I'm very curious about this because there =
isn't
clear documentation anywhere about this. </span></font><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>&nbsp;</span></font><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>Thanks,</span></font><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>&nbsp;</span></font><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>Josh C. </span></font><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>

------=_NextPart_000_009D_01C83B48.43738F30--


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


