Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: CBO: Skewed Data and "NOT EQUALS"
john.howard.65_at_gmail.com wrote:
> Daniel,
>
> Thanks for the reply. I've made good use of Tom's FBI tricks before
> but they can't really help me here. The app is Business Objects which
> generates a variety of SQL. I have to cover all the possible uses of
> this column e.g. =, <>, IN, NOT IN ....
>
> Cheers,
> John
If you are going to have an index on the column, and you already do, see if this would be more efficient.
Don't forget you can also have two indexes on that column and hint your code or use DBMS_ADVANCED_REWRITE, if 10g, to rewrite the DML being created by BO.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Thu Aug 02 2007 - 09:33:44 CDT
![]() |
![]() |