Newsgroups: comp.databases.oracle.server
From: "hpuxrac" <johnbhur...@sbcglobal.net>
Date: 8 Dec 2006 16:57:57 -0800
Local: Fri, Dec 8 2006 7:57 pm
Subject: Re: wildcard search and full tablescans
Charles Hooper wrote: There's no magic formula. > DA Morgan wrote: > > Charles Hooper wrote: > > > I recall reading various write-ups by Tom Kyte, Jonathan Lewis, or > > > others that detail why the index cannot be used in such a such a case, > > > but cannot locate a reference to one of the write-ups. As a general > > > rule, if more than 20% to 25% of a table's rows are expected to be > > > read, it is usually less expensive to perform a full table scan, rather > > > than a scan of the index and then an access by ROWID to read the data > > > from the table. Note that using a % or _ wildcard for the initial > > > character, Oracle would be required to access every block in the index > > > and then potentially every row in the table by ROWID. > > > Charles Hooper > > Jonathan and other, oh how I hate to try paraphrasing others accurately, > Paraphrasing from "Expert Oracle Database Architecture" by Tom Kyte: > I have seen similar comments from other respectable sources. The 20% > Maybe Gaja Vaidyanatha put it best in "Oracle Performance Tuning 101" > But then, you must also consider the number of index and table blocks > I am not disagreeing with your comments on this topic. However, if To me it doesn't matter in the case of a search as submitted by the OP Either type of approach is likely to produce an application that has Searching "anywhere" within a text string requires thought and research Searching from the beginning of a string is different. Discussion of percentages etc in this particular case is missing the You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||