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...

alt text

alt text

if locationtype highly selective suggestion create covered index on table key locationtype , add locationid in include column list


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -