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: Index to speed up "select count(*) from" queries...

Re: Index to speed up "select count(*) from" queries...

From: Ralph Ganszky <Ralph.Ganszky_at_sap-ag.de>
Date: Mon, 17 May 1999 17:52:59 +0200
Message-ID: <37403B5B.3D3344DB@sap-ag.de>


Hi,

if You have the Enterprice Edition of Oracle8 than You can create a bitmap index for Your querry if the key is not unique. If the key is unique the index will be greater than an normal B*-tree index. The Oracle documentation tell You that a COUNT(*) runs very quick if You have a bitmap index espacially a count of all rows of the table. I don't know if it will be also faster if You have a where clause in Your statement. Maybe there is anybody out how can tell us.

Best regards

Ralph Ganszky

tim_mcconechy_at_my-dejanews.com wrote:

> My application needs to do some count(*) queries...
>
> Is there some kind of index I can use to speed this query..
>
> On a table with 100000 records it takes a couple seconds longer than I
> would like...
>
> --== Sent via Deja.com http://www.deja.com/ ==--
> ---Share what you know. Learn what you don't.---
Received on Mon May 17 1999 - 10:52:59 CDT

Original text of this message

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