Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: indexing a column with only 2 or 3 values
ciapecki wrote:
> On 3 Aug., 09:54, Thomas Kellerer <JUAXQOSZF..._at_spammotel.com> wrote:
>> ciapecki wrote: >>> Hi, >>> Does indexing a very big table (about 5Mio records) on the columnA >>> which can hold only values Y,N,<NULL> make sense? >> Yes, that's what bitmap indexes were made for. >> >> Thomas
Apart from comparing execution plans, I suggest to read the relevant chapter in the concepts manual:
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/schema.htm#sthref1008
Quote:
"If the number of distinct values of a column is less than 1% of the
number of rows in the table, or if the values in a column are repeated
more than 100 times, then the column is a candidate for a bitmap index."
Thomas Received on Fri Aug 03 2007 - 03:03:56 CDT
![]() |
![]() |