Re: Re: Re: query re-write
Quote:
Originally posted by abhaysk
To Add, If Card of these Cols is pretty less, go for BIT Map Index.
Else Normal.
Whoa there tiger. I don't think that's a good idea.
Re: Re: Re: Re: query re-write
Quote:
Originally posted by slimdave
Whoa there tiger. I don't think that's a good idea.
:confused: :confused:
If card is too low...if u build a index ( normal btree )...oracle will just process as if there were no index.
In our project, IMHO, the PK index built on 9 columns, among which 8 cols were low Card cloumns..( about 5 distinct recs )...and total number of recs in table were around 200 million.
The Most significant Col was PIN with high Card of about 50000 distinct recs.
When our APPL..query with PIN being joined with other table (REF TABLE) and rest Cols of the PK with some hard coded values..oracle choosed FTS ( not even Range scan on PK ).
When i built BIT map index on those rest 8 Cols..query went for BIT MAP range scan ( obivious ).
So why not build BIT MAP for low Card vauled Cols?
Abhay.