Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Use what kind index?
<cnwy_at_my-deja.com> wrote in message news:8n12nl$k7g$1_at_nnrp1.deja.com...
> I have a table about 1,100,000 records.
> Create Table Card
> (No char(10),
> Client char(15),
> ...
> Status(1),
> )
> Status in ('1','2','3','4','5')
> the status of each card change from '1' to '5'
> the status of new card is '1',the finished status is '5'
> after system runs for a long time,
> '1' 3%
> '2' 5%
> '3' 5%
> '4' 10%
> '5' 77%
> we always do the query with status '4' and '1'
>
> How should I create indexes on the table(normal indexes or bitmap
> indexes)?
Since the records get updates I wouldn't use bitmap indexes, and since you have low cardinality (only 5 distinct values for 1.1 m records), and relatively thin records, I'd shy away from indexes altogether. Received on Fri Aug 11 2000 - 00:00:00 CDT
![]() |
![]() |