Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Replacement for AND_EQUAL

Re: Replacement for AND_EQUAL

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: 2006-01-12 09:16:07
Message-id: 011401c61750$7027d900$0200a8c0@Primary

The least worst alternative is the INDEX_COMBINE, which depends on _b_tree_bitmap_plans being set to true (the default from 9i).

This allows the optimizer to consider acquiring rowids from multiple B-trees, turning each rowid set into a bitmap, then doing bitmap operations between sets before converting back to rowids and visiting the table.

In principle it is much more powerful than AND_EQUAL as it can use multi-column indexes, and doesn't require an equality condition on the full index. (AND_EQUAL required an equality condition on single-column (non-unique) indexes)

Regards

Jonathan Lewis

http://www.jlcomp.demon.co.uk/faq/ind_faq.html The Co-operative Oracle Users' FAQ

http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html Cost Based Oracle: Fundamentals

http://www.jlcomp.demon.co.uk/appearances.html Public Appearances - schedule updated 10th Jan 2006

Hi folks,

AND_EQUAL hint is deprecated in Oracle 10g.

does anyone know if there is another suitable replacement for it?

or

should i replace it with INDEX_JOIN or INDEX_COMBINE hints?

sure will test the queries with both these hints, but i have 100s of them to replace before i go live with 10g.

thanks
anand

--

http://www.freelists.org/webpage/oracle-l Received on Thu Jan 12 2006 - 09:16:07 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US