dbTalk Databases Forums  

the 20% rule

comp.databases.theory comp.databases.theory


Discuss the 20% rule in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #31  
Old   
Tim X
 
Posts: n/a

Default Re: the 20% rule - 07-26-2008 , 12:59 AM






David BL <davidbl (AT) iinet (DOT) net.au> writes:

Quote:
On Jul 24, 10:01 pm, aark... (AT) gmail (DOT) com wrote:

The fastest way to retrieve rows from a table is to access the row
with exact row id. An
index is the second fastest way

I'm no expert in oracle, but my understanding is that it provides so
called heap organised tables or else index organised tables. The
above comment would seem to apply to the former not the latter.
Oracle provides a wealth of options with respect to table organisation,
indexes etc. Rowid is very fast because it identifies the exact row in
the table to retrieve. The problem is that you rarely know the rowid
without first having selected the row - its not like using an index
where you can say "give me all records where the field x = y". However,
if you do know the rowid of the row you are interested in, it is very
fast because you access it directly from the table and not by first
reading the index to get the table location and then reading it from the
table. At least, thats sort of my understanding in a siplistic way.

Tim


--
tcross (at) rapttech dot com dot au


Reply With Quote
  #32  
Old   
Tim X
 
Posts: n/a

Default Re: the 20% rule - 07-26-2008 , 12:59 AM






David BL <davidbl (AT) iinet (DOT) net.au> writes:

Quote:
On Jul 24, 10:01 pm, aark... (AT) gmail (DOT) com wrote:

The fastest way to retrieve rows from a table is to access the row
with exact row id. An
index is the second fastest way

I'm no expert in oracle, but my understanding is that it provides so
called heap organised tables or else index organised tables. The
above comment would seem to apply to the former not the latter.
Oracle provides a wealth of options with respect to table organisation,
indexes etc. Rowid is very fast because it identifies the exact row in
the table to retrieve. The problem is that you rarely know the rowid
without first having selected the row - its not like using an index
where you can say "give me all records where the field x = y". However,
if you do know the rowid of the row you are interested in, it is very
fast because you access it directly from the table and not by first
reading the index to get the table location and then reading it from the
table. At least, thats sort of my understanding in a siplistic way.

Tim


--
tcross (at) rapttech dot com dot au


Reply With Quote
  #33  
Old   
Tim X
 
Posts: n/a

Default Re: the 20% rule - 07-26-2008 , 12:59 AM



David BL <davidbl (AT) iinet (DOT) net.au> writes:

Quote:
On Jul 24, 10:01 pm, aark... (AT) gmail (DOT) com wrote:

The fastest way to retrieve rows from a table is to access the row
with exact row id. An
index is the second fastest way

I'm no expert in oracle, but my understanding is that it provides so
called heap organised tables or else index organised tables. The
above comment would seem to apply to the former not the latter.
Oracle provides a wealth of options with respect to table organisation,
indexes etc. Rowid is very fast because it identifies the exact row in
the table to retrieve. The problem is that you rarely know the rowid
without first having selected the row - its not like using an index
where you can say "give me all records where the field x = y". However,
if you do know the rowid of the row you are interested in, it is very
fast because you access it directly from the table and not by first
reading the index to get the table location and then reading it from the
table. At least, thats sort of my understanding in a siplistic way.

Tim


--
tcross (at) rapttech dot com dot au


Reply With Quote
  #34  
Old   
Tim X
 
Posts: n/a

Default Re: the 20% rule - 07-26-2008 , 12:59 AM



David BL <davidbl (AT) iinet (DOT) net.au> writes:

Quote:
On Jul 24, 10:01 pm, aark... (AT) gmail (DOT) com wrote:

The fastest way to retrieve rows from a table is to access the row
with exact row id. An
index is the second fastest way

I'm no expert in oracle, but my understanding is that it provides so
called heap organised tables or else index organised tables. The
above comment would seem to apply to the former not the latter.
Oracle provides a wealth of options with respect to table organisation,
indexes etc. Rowid is very fast because it identifies the exact row in
the table to retrieve. The problem is that you rarely know the rowid
without first having selected the row - its not like using an index
where you can say "give me all records where the field x = y". However,
if you do know the rowid of the row you are interested in, it is very
fast because you access it directly from the table and not by first
reading the index to get the table location and then reading it from the
table. At least, thats sort of my understanding in a siplistic way.

Tim


--
tcross (at) rapttech dot com dot au


Reply With Quote
  #35  
Old   
Tim X
 
Posts: n/a

Default Re: the 20% rule - 07-26-2008 , 12:59 AM



David BL <davidbl (AT) iinet (DOT) net.au> writes:

Quote:
On Jul 24, 10:01 pm, aark... (AT) gmail (DOT) com wrote:

The fastest way to retrieve rows from a table is to access the row
with exact row id. An
index is the second fastest way

I'm no expert in oracle, but my understanding is that it provides so
called heap organised tables or else index organised tables. The
above comment would seem to apply to the former not the latter.
Oracle provides a wealth of options with respect to table organisation,
indexes etc. Rowid is very fast because it identifies the exact row in
the table to retrieve. The problem is that you rarely know the rowid
without first having selected the row - its not like using an index
where you can say "give me all records where the field x = y". However,
if you do know the rowid of the row you are interested in, it is very
fast because you access it directly from the table and not by first
reading the index to get the table location and then reading it from the
table. At least, thats sort of my understanding in a siplistic way.

Tim


--
tcross (at) rapttech dot com dot au


Reply With Quote
  #36  
Old   
Tim X
 
Posts: n/a

Default Re: the 20% rule - 07-26-2008 , 12:59 AM



David BL <davidbl (AT) iinet (DOT) net.au> writes:

Quote:
On Jul 24, 10:01 pm, aark... (AT) gmail (DOT) com wrote:

The fastest way to retrieve rows from a table is to access the row
with exact row id. An
index is the second fastest way

I'm no expert in oracle, but my understanding is that it provides so
called heap organised tables or else index organised tables. The
above comment would seem to apply to the former not the latter.
Oracle provides a wealth of options with respect to table organisation,
indexes etc. Rowid is very fast because it identifies the exact row in
the table to retrieve. The problem is that you rarely know the rowid
without first having selected the row - its not like using an index
where you can say "give me all records where the field x = y". However,
if you do know the rowid of the row you are interested in, it is very
fast because you access it directly from the table and not by first
reading the index to get the table location and then reading it from the
table. At least, thats sort of my understanding in a siplistic way.

Tim


--
tcross (at) rapttech dot com dot au


Reply With Quote
  #37  
Old   
Tim X
 
Posts: n/a

Default Re: the 20% rule - 07-26-2008 , 12:59 AM



David BL <davidbl (AT) iinet (DOT) net.au> writes:

Quote:
On Jul 24, 10:01 pm, aark... (AT) gmail (DOT) com wrote:

The fastest way to retrieve rows from a table is to access the row
with exact row id. An
index is the second fastest way

I'm no expert in oracle, but my understanding is that it provides so
called heap organised tables or else index organised tables. The
above comment would seem to apply to the former not the latter.
Oracle provides a wealth of options with respect to table organisation,
indexes etc. Rowid is very fast because it identifies the exact row in
the table to retrieve. The problem is that you rarely know the rowid
without first having selected the row - its not like using an index
where you can say "give me all records where the field x = y". However,
if you do know the rowid of the row you are interested in, it is very
fast because you access it directly from the table and not by first
reading the index to get the table location and then reading it from the
table. At least, thats sort of my understanding in a siplistic way.

Tim


--
tcross (at) rapttech dot com dot au


Reply With Quote
  #38  
Old   
David BL
 
Posts: n/a

Default Re: the 20% rule - 07-27-2008 , 07:47 PM



On Jul 26, 1:59 pm, Tim X <t... (AT) nospam (DOT) dev.null> wrote:
Quote:
David BL <davi... (AT) iinet (DOT) net.au> writes:
On Jul 24, 10:01 pm, aark... (AT) gmail (DOT) com wrote:

The fastest way to retrieve rows from a table is to access the row
with exact row id. An
index is the second fastest way

I'm no expert in oracle, but my understanding is that it provides so
called heap organised tables or else index organised tables. The
above comment would seem to apply to the former not the latter.

Oracle provides a wealth of options with respect to table organisation,
indexes etc. Rowid is very fast because it identifies the exact row in
the table to retrieve. The problem is that you rarely know the rowid
without first having selected the row - its not like using an index
where you can say "give me all records where the field x = y". However,
if you do know the rowid of the row you are interested in, it is very
fast because you access it directly from the table and not by first
reading the index to get the table location and then reading it from the
table. At least, thats sort of my understanding in a siplistic way.
AFAIK in an index organised table, the ROWID is actually the primary
key which is used as a primary index. Your comment suggests that an
index is necessarily a secondary index which isn't always the case.


Reply With Quote
  #39  
Old   
David BL
 
Posts: n/a

Default Re: the 20% rule - 07-27-2008 , 07:47 PM



On Jul 26, 1:59 pm, Tim X <t... (AT) nospam (DOT) dev.null> wrote:
Quote:
David BL <davi... (AT) iinet (DOT) net.au> writes:
On Jul 24, 10:01 pm, aark... (AT) gmail (DOT) com wrote:

The fastest way to retrieve rows from a table is to access the row
with exact row id. An
index is the second fastest way

I'm no expert in oracle, but my understanding is that it provides so
called heap organised tables or else index organised tables. The
above comment would seem to apply to the former not the latter.

Oracle provides a wealth of options with respect to table organisation,
indexes etc. Rowid is very fast because it identifies the exact row in
the table to retrieve. The problem is that you rarely know the rowid
without first having selected the row - its not like using an index
where you can say "give me all records where the field x = y". However,
if you do know the rowid of the row you are interested in, it is very
fast because you access it directly from the table and not by first
reading the index to get the table location and then reading it from the
table. At least, thats sort of my understanding in a siplistic way.
AFAIK in an index organised table, the ROWID is actually the primary
key which is used as a primary index. Your comment suggests that an
index is necessarily a secondary index which isn't always the case.


Reply With Quote
  #40  
Old   
David BL
 
Posts: n/a

Default Re: the 20% rule - 07-27-2008 , 07:47 PM



On Jul 26, 1:59 pm, Tim X <t... (AT) nospam (DOT) dev.null> wrote:
Quote:
David BL <davi... (AT) iinet (DOT) net.au> writes:
On Jul 24, 10:01 pm, aark... (AT) gmail (DOT) com wrote:

The fastest way to retrieve rows from a table is to access the row
with exact row id. An
index is the second fastest way

I'm no expert in oracle, but my understanding is that it provides so
called heap organised tables or else index organised tables. The
above comment would seem to apply to the former not the latter.

Oracle provides a wealth of options with respect to table organisation,
indexes etc. Rowid is very fast because it identifies the exact row in
the table to retrieve. The problem is that you rarely know the rowid
without first having selected the row - its not like using an index
where you can say "give me all records where the field x = y". However,
if you do know the rowid of the row you are interested in, it is very
fast because you access it directly from the table and not by first
reading the index to get the table location and then reading it from the
table. At least, thats sort of my understanding in a siplistic way.
AFAIK in an index organised table, the ROWID is actually the primary
key which is used as a primary index. Your comment suggests that an
index is necessarily a secondary index which isn't always the case.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.