Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL performance on index?
James Yang wrote:
> Mih 写道:
>
>> Make the index on arbid, mandt, "AUFPL" , "OBJNR" , "APLFL". >> This way you will have to scan index with 5 fileds vs. scanning table >> with 20+ fields. >> The index should be b-tree, because is the combination of 5 fileds is >> changing too much for a bitmap index.
The 1st field in the index *must* be the field with the most distinct
values from the where clause -> ARBID.
Then the rest of the where clause fields: MANDT.
Then the fields selected: AUFPL, OBJNR, APLFL. The order of this fields
is irrelevant.
Received on Thu Jun 15 2006 - 13:31:33 CDT