Subscribe to this list via RSS Blog posts tagged in PagedList

Posted by on in Blogs
In LINQ, Beware of Skip(0) Calling IQueryable<T>.Skip(0) seems like it should be "free." In other words, since it will have no effect on the resulting data, there should be little to no performance cost for calling it. But this is demonstrably not true in LINQ to Entities, and it occurs to me that LINQ providers are not required to optimize it away. Therefore, it is probably a good idea to avoid making such a call at all, so that you do not have to concern yourself with whether the provider will generate a slower qu...
  • Page :
  • 1

Check out more tips and tricks in this development video: