What indexes will I need to make on this SQL Server table? -
i have following sql query sql server 2008 db.
select top(@numberofstreetresults) locationtype, locationid, name [dbo].[locationnames] contains(name, @searchquery) , locationtype = 7
notice how i'm using contains
keyword? have fts on name
field.
i'm not sure index(s) need manually add table because query common in our system.
do need add index against locationtype
?
update
here's query graphs...
if locationtype highly selective suggestion create covered index on table key locationtype , add locationid in include column list
Comments
Post a Comment