Hi folks,
I have the following sql query for a SQL Server 2008 db.
SELECT TOP(@NumberOfStreetResults) LocationType, LocationId, Name
FROM [dbo].[LocationNames]
WHERE CONTAINS(Name, @SearchQuery)
AND LocationType = 7
Notice how I'm using the CONTAINS
keyword? I have an FTS on the Name
field.
I'm not sure what index(s) I need to manually add to the table because this query is very common in our system.
Do I need to just add an index against LocationType
?
Update
Here's the query graphs...