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: count(*) vs. a cursor when determining the existing record on primary key

Re: count(*) vs. a cursor when determining the existing record on primary key

From: Billy Verreynne <vslabs_at_onwe.co.za>
Date: Tue, 17 Jun 2003 09:12:59 +0000
Message-ID: <bcmf5u$3bg$1@ctb-nnrp2.saix.net>


Slight off the subject..

Select count(*) on a table with 83 million rows (table size close to 20GB).

Time? 18.07 seconds.

Reason.

a) Table is partitioned. 
b) Local bitmap indexes exist.
c) CBO using the bitmap index in parallel for the select count(*). 

   (no hints used)

Not all problems are nails. And there's more than just the hammer in the Oracle toolbox. ;-)

--
Billy
Received on Tue Jun 17 2003 - 04:12:59 CDT

Original text of this message

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