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: Weerd de E.C. Kirsten <Kirsten.deWeerd_at_Oranjewoud.nl>
Date: Wed, 21 Jun 2000 12:43:06 +0100
Message-Id: <10535.109952@fatcity.com>


I think performance will be about the same. You select all records in the table, no matter which statement you use. So evidently, Oracle will process every row no matter what.

Greets,

Kirsten

> -----Original Message-----
>
> 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
Received on Wed Jun 21 2000 - 06:43:06 CDT

Original text of this message

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