Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: performace question...

Re: performace question...

From: Brian Peasland <dba_at_remove_spam.peasland.com>
Date: Tue, 13 Apr 2004 17:38:11 GMT
Message-ID: <407C2583.EA34CA0D@remove_spam.peasland.com>


Let me give you an oversimplified example:

All the rows of your table fit neatly into one database block. To access any row in that table, with a full table scan, requires reading one block.

Now let's throw an index on the column you are querying. Since the number of rows is pretty small in that table, the index will only contain one block as well. To access any row in that table, with an index lookup, requires reading two blocks (the index block and the table block).

Which do you suppose is quicker?

Cheers,
Brian

-- 
===================================================================

Brian Peasland
dba_at_remove_spam.peasland.com

Remove the "remove_spam." from the email address to email me.


"I can give it to you cheap, quick, and good. Now pick two out of
 the three"
Received on Tue Apr 13 2004 - 12:38:11 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US