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

Home -> Community -> Usenet -> c.d.o.server -> Re: CBO: Skewed Data and "NOT EQUALS"

Re: CBO: Skewed Data and "NOT EQUALS"

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 02 Aug 2007 07:33:44 -0700
Message-ID: <1186065223.536019@bubbleator.drizzle.com>


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.org
Received on Thu Aug 02 2007 - 09:33:44 CDT

Original text of this message

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