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
  #1  
Old   
aarklon@gmail.com
 
Posts: n/a

Default the 20% rule - 07-24-2008 , 09:01 AM






Hi all,

I recently read the following in a book(oracle 9i for dummies by
Carol McCullough Dieter)

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, but it decreases in performance as
the proprotion of the rows retrieved increases. if you are retrieving
approximately 20 % of the rows in a table, using a index is just as
fast. But beyond that magic 20 %, not using 20% is faster.

keep this rule in mind when you create indexes intended to help speed
up a query.
Queries vary in the rows that they select from a table. if you have a
query that you use often,
determine the number of rows that it selects from the table. if this
number is more than 20%
of the total no: of rows in the table , an index on the table may not
improve the performance
of the query. you may just want to try both methods. if the number of
rows is less than 20%, an index will almost certainly help
performance.

my question is to what extent this rule is true ?

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

Default Re: the 20% rule - 07-24-2008 , 09:22 AM






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

Quote:
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.


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

Default Re: the 20% rule - 07-24-2008 , 09:22 AM



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

Quote:
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.


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

Default Re: the 20% rule - 07-24-2008 , 09:22 AM



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

Quote:
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.


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

Default Re: the 20% rule - 07-24-2008 , 09:22 AM



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

Quote:
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.


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

Default Re: the 20% rule - 07-24-2008 , 09:22 AM



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

Quote:
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.


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

Default Re: the 20% rule - 07-24-2008 , 09:22 AM



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

Quote:
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.


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

Default Re: the 20% rule - 07-24-2008 , 09:22 AM



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

Quote:
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.


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

Default Re: the 20% rule - 07-24-2008 , 09:22 AM



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

Quote:
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.


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

Default Re: the 20% rule - 07-24-2008 , 09:22 AM



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

Quote:
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.


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.