In the SQL query, "TOP 1" is added to
SELECT TOP 1 [values] FROM [TABLE] where [TABLE].Value = "ABC"
give me an increase in performance when I know that there is only one of these entries? In particular, I am thinking about LinqToSql and the difference between the .Single(...) and .First(...) methods, where .First(...) adds TOP 1 to the generated sql.
LinqToSql is already feeling slow, so I'm just trying to figure out how to make it faster.
EDIT: [TABLE].Value may be a foreign key in some cases.
source share