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: A question about performance

Re: A question about performance

From: Yosi Greenfield <yosi_at_comhill.com>
Date: Wed, 21 Jun 2000 10:48:01 -0400
Message-Id: <10535.109996@fatcity.com>


Hi,

The optimizer will probably ignore the index and do a full table scan anyway. If not, it would have to do at least two reads (index and data) and still return every row of the table. In any case, leave out the where clause - it could only hurt you.

hth

yosi

TiffanyDu_at_pcdc.com.tw wrote:

> Hi All:
> There is a question about performance.
> Table name : subscriber , primary key : subscr_id , with
> over 5000000 records .
>
> CASE 1 : select *
> from subscriber ;
> (FULL TABLE SCAN)
>
> CASE 2 : select *
> from subscriber
> where subscr_id > 0 ;
> (USE INDEX)
>
> Could anyone tell me which ones performance is better , or
> they are the same ??
>
> Thank you in advance.
>
>
> Tiffany
> E-mail tiffanydu_at_pcdc.com.tw
>
>
> --
> Author: =?big5?B?VGlmZmFueSBEdSAoIKf5p0qq4iAp?=
> INET: TiffanyDu_at_pcdc.com.tw
>
> 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
> also send the HELP command for other information (like subscribing).
Received on Wed Jun 21 2000 - 09:48:01 CDT

Original text of this message

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