Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: wildcard search and full tablescans
Charles Hooper wrote:
> wagen123_at_yahoo.com wrote:
>> Oracle10g 10.2.0.1 >> >> select * from <table_name> where <column_name> like '%abc%'; >> >> does not use the index and does a full tablescan (guess this is the >> expected behaviour as per explain plan). >> >> Any suggestions as to how to use the index (index hint didn't help), IF >> possible or other alternatives. >> >> thanks
Jonathan and other, oh how I hate to try paraphrasing others accurately, have been generally dismissive of throwing out that 20-25% number. I have run tests in my lab where I have been able to show wildly different numbers for the optimizer depending on many factors including version, caching related parameters, etc. But as a general rule it is certainly a good thing to keep in mind that >50% is probably not a winning percentage for index usage.
-- 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 Fri Dec 08 2006 - 10:39:24 CST