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 -> Data Skew

Data Skew

From: tq <tomm_quinn_at_yahoo.com>
Date: 15 Apr 2005 13:28:52 -0700
Message-ID: <1113596932.125097.27120@l41g2000cwc.googlegroups.com>


I have the following situation -

Table A has 10 rows and the primary key is an sequence generated id. The only other column is a 'description' field.

Table B has 10 million records and has an indexed foreign key pointing to the table A pk.

The foreign key values in the table B are massively skewed. 95% of the records have a single value. And any queries against these tables can only use the 'description' column in Table A to limit the records produced in the join to table B.

So histograms on the fk are not effective since the limit is on the description column. How can I get the optimizer to know the optimal access strategy for table B (based on the skew) if the queries can only be limited on table A.description?

Thanks. Received on Fri Apr 15 2005 - 15:28:52 CDT

Original text of this message

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