Linq to SQL: select optimization

后端 未结 6 1005
梦如初夏
梦如初夏 2021-01-18 11:16

On large tables in MSSQL; selecting specific columns results in greater speed of the query. Does the same apply to Linq to SQL?

Would this:

var perso         


        
6条回答
  •  被撕碎了的回忆
    2021-01-18 11:46

    If you have columns that are very large such as binaries and images then it can make a significant difference which is why LINQ to SQL allows you to specify delay loading for certain columns so that you can still select entire objects without performing 'select new' projections.

提交回复
热议问题