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

Home -> Community -> Usenet -> c.d.o.misc -> Re: URGENT NEED OF HELP ABOUT PL/SQL

Re: URGENT NEED OF HELP ABOUT PL/SQL

From: Martin Jesterhoudt <martinj_at_worldonline.nl>
Date: 1997/09/09
Message-ID: <34145ba1.8126785@news.worldonline.nl>#1/1

On Wed, 03 Sep 1997 14:40:19 GMT, dave_at_fifthd.ca (Dave Macpherson) wrote:

>>Use select count(<indexed_column>) if possible. This way you don't
>>have to go through the table, but only the index. Even faster ;-))
 

>I thought Oracle was smart enough to optimize "count(*)" to use
>whatever the fastest method should be. I don't believe there is any
>performance penalty for coding it this way.

If you've not analysed your tables for some reason, this directive can be handy.


Received on Tue Sep 09 1997 - 00:00:00 CDT

Original text of this message

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