|
message: 6
date: Mon, 16 Nov 2015 15:15:37 -0600
from: Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>
subject: Re: Embedded RPG and the WHERE LIKE
I think the index has to have the same sort sequence in order for it to
be used.
And so far as I know, for the LIKE predicate, only those with trailing
wildcard can take advantage of the index. If a leading wildcard, it is
almost certainly going to use a table scan.
On 11/16/2015 12:56 PM, Mike Jones wrote:
Hi Booth,over
Between Birgitta and Peter, they've got your answers covered.
To get reasonable performance, you'll definitely want an index present
columns searched over using LIKE, to ensure an Index Probe takes place
instead of a full Table Scan.
Mike
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.