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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -