Efficiency
- From: "Rob" <stimetsr@xxxxxxxxx>
- Date: 29 Jun 2006 06:51:01 -0700
I wrote a script that built the SQL to examine text fields using a LIKE
operator,
text LIKE '*searchtext*'
but for some reason or other I couldn't get it to work. I instead
decided to test for inclusion by using
InStr(1, text, searchtext) > 0
which works, but the code runs a whole lot slower than I'd like it to.
The question is how much less efficient is evaluating the InStr
function and then doing a comparison versus simply using a LIKE
operator (i.e. would it be worth it for me to spend the time to make
the latter work)?
.
- Follow-Ups:
- Re: Efficiency
- From: Allen Browne
- Re: Efficiency
- Prev by Date: Re: Query: Two Dates in one cell of a field. Need criteria help
- Next by Date: Re: Efficiency
- Previous by thread: Re: Fulltext search
- Next by thread: Re: Efficiency
- Index(es):
Relevant Pages
|