Works extrimely skow on 20k records

Topics: Business Logic Layer
Dec 29, 2012 at 2:52 PM

I got a blog with 20k posts and it's working extremly slow.

I found that on start it takes all the posts from DB and than tries to fil each post. As I have 20k+ of postss its stuck for a lng time.

Here my suggestion where bottleneck


ln 595

var posts = postIDs.Select(id => Post.Load(new Guid(id))).ToList();


Please advise