CZerfas Intermediate
Joined: 31 Jan 2003 Posts: 211 Topics: 8
|
Posted: Wed Mar 30, 2005 8:17 am Post subject: make "IS NULL" not indexable |
|
|
I have a pretty komplex query touching 10 big tables. The optimizer chooses to start with a bad index access on a table: both index columns are defined as nullable, and my search criteria needs to have both columns having the NULL value.
The pitty is, that 2/3 of the rows in the table posses this combination.
I have no chance to create propper statistic values for these index columns, since I have no access to our DBAs.
The alternative I come to think of is to make these predicates "not indexable". Forcing this attribute for normal comparing operations (=, >=, etc.) for numeric, character or date/time formats is no problem.
The question is: How can I achieve the status "not indexable" for a predicate "column IS NULL"?
kind regards
Christian |
|