I have this simple query:
SELECT distinct top 100 A.[Number]
FROM [Section] AS A
LEFT JOIN [Customers] AS c ON c.ARef = A.Number
LEFT JOIN [Guides] AS G ON G.CustomerId = c.CustomerId
LEFT JOIN [Telephones] AS T ON T.CustomerId = c.CustomerId
LEFT JOIN [Epts] AS E ON E.CustomerId = c.CustomerId
LEFT JOIN [Emails] AS Em ON Em.CustomerId = c.CustomerId
LEFT JOIN [Addresses] AS Ad ON Ad.CustomerId=C.CustomerId
WHERE
A.SaloonId= 400
AND (
A.Number= @term OR c.Surname = @term OR c.FirstName = @term
----
OR Ad.Postcode = @term
OR G.CategoryRef= @term
OR T.PhoneNumber = @term
OR E.Code= @term
OR Em.EmailAddress = @term
)
All the fields included in the where section have indexes which very low fragmentation percentage.
If we execute the query for a term, it takes more than 20 seconds but if I remove any random line in the last section (after "----") it takes less than 1 seconds.