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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: why the index is not used ?

RE: why the index is not used ?

From: Nguyen, Long <Long.Nguyen_at_its.csiro.au>
Date: Fri, 28 Apr 2000 09:17:17 +1000
Message-Id: <10480.104366@fatcity.com>


Hi Steve,

I think in this case since table TRANSFER_DETAILS has a referential constraint on table TRANSEFRS the no. of rows returned from the query would be the same as the no. of rows in TRANSFER_DETAILS (which may be different to the no. of rows in table TRANSFERS). Am I correct here?

One question: what are the Card and Bytes field in the EXPLAIN PLAN indicate?

Long

-----Original Message-----
From: Steve Boyd [mailto:pimaco_oracle_at_yahoo.com] Sent: Thursday, April 27, 2000 11:29 PM
To: Multiple recipients of list ORACLE-L Subject: Re: why the index is not used ?

You are on the right track John. Basically there is no criteria that limits the number of rows returned. Your query will return every row in the two tables. It is actually faster to do a full tablescan than an index lookup if you are returning all the rows, so Oracle is doing the right thing here.

HTH,
Steve Boyd


Do You Yahoo!?
Talk to your friends online and get email alerts with Yahoo! Messenger. http://im.yahoo.com/
-- 
Author: Steve Boyd
  INET: pimaco_oracle_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
Received on Thu Apr 27 2000 - 18:17:17 CDT

Original text of this message

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