Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: CBO bug with global index ?
Hi David,
> CBO bug with global index ?
to combine two indices with OR condition they must by converted to bitmaps first.
Global bitmap index are not supported. I'm not really sure if the conversion of a global index to bitmap index is impossible, but I never observed it. I'd speculate that this is not possible and it is the reason of the full scan with global indexes.
Any on list can confirm or disprove this?
IMHO two global indexes can only be combined on AND condition (see hint AND_EQUAL) Anyway in your example I'd recommend to *use* local index (especially if you deploy exchange partition). Based on the way how the table is populated you may consider to use local bitmap index.
HTH Jaromir D.B. Nemec
| 6 | BITMAP OR | | | | | | |
| 7 | BITMAP CONVERSION FROM ROWIDS | | | | | | |
|* 8 | INDEX RANGE SCAN | IND_TRADE_BASE_BACCOUNT | | | 43 | 1 | 21 |
|* 10 | INDEX RANGE SCAN | IND_TRADE_BASE_SACCOUNT | | | 44 | 1 | 21 || 12 | COLLECTION ITERATOR PICKLER FETCH| STR2VARLIST | | | | | |
| 11 | VIEW | VW_NSO_1 | 8168 | 7992K| 11 | | |
SQL> select * from v$version;
BANNER
Thanks for any help!
!
-- http://www.freelists.org/webpage/oracle-l -- http://www.freelists.org/webpage/oracle-lReceived on Tue May 31 2005 - 02:49:38 CDT
![]() |
![]() |