I'm trying to search an access database with a fairly large table (llK+ records).
Need to search based on input from three text fields on the search form.
The query I have is running terribly slow...like unacceptably slow. I'm using the LIKE operater, and wondering if maybe there is a better way.
Here's the query:
Any thoughts?
Thanks for any suggestions!
Need to search based on input from three text fields on the search form.
The query I have is running terribly slow...like unacceptably slow. I'm using the LIKE operater, and wondering if maybe there is a better way.
Here's the query:
Code:
<cfquery name="getObsv" datasource="#app.ds#">
SELECT a.observationnumber, a.observation, b.eventbegan, c.agencyname, e.sitename
FROM observations a, inspections b, agency c, inspsites d, plantsites e
WHERE a.eventid = b.inspectiontid
AND b.agencyid = c.agencyid
AND b.inspectiontid = d.inspectionid
AND d.plantsiteid = e.plantsiteid
AND a.observation LIKE '%#page.obsv1#%'
OR a.observation LIKE '%#page.obsv2#%'
OR a.observation LIKE '%#page.obsv3#%'
</cfquery>
Any thoughts?
Thanks for any suggestions!