Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: B-Tree to Partitioned index
Your hypothesis (2) about an always null third column is not safe. There are cases where Oracle can use the number of distinct keys in the index to work out the cost of a nested loop join, and other cases where it uses the selectivity of the separate columns of the index - the numbers are often different.
If you added a third 'always null' column, you would disable the option for using distinct_keys, and could therefore affect more plans than you might expect.
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/seminar.html Public Appearances - schedule updated Dec 23rd 2004
Some (untried, untested) ideas...
hth
connor
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Dec 30 2004 - 02:57:40 CST
![]() |
![]() |