Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: dealing with skewed data
Mark D Powell wrote:
> Richard Kuhler <noone_at_nowhere.com> wrote in message news:<MyFNb.82210$Vs3.69341_at_twister.socal.rr.com>... >
> > > Richard, we had a situation similar to your in our OLTP. The CBO said > full table scan. The developer wanted the query to use an index. The > index only had six distinct values of which 85% of the data had one > value. > > I looked at it and demonstrated that the CBO was correct for 85% of > the data in our case so the developer coded a test on the bind > variable. If it was the 85% value we let the optimizer run the > statement the way it wants. For any other value we execute a hinted > version of the statement that uses the index. > > HTH -- Mark D Powell --
If there is any chance you could send me the item you just described I would very much like to show it to my students. Thanks.
-- Daniel Morgan http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp damorgan_at_x.washington.edu (replace 'x' with a 'u' to reply)Received on Fri Jan 16 2004 - 10:05:11 CST
![]() |
![]() |