C#プロジェクトにこのlinqクエリがあります
var query = from p in db.Posts
join a in db.Author on p.Author equals a
join u in db.Users on p.PostedBy equals u
where p.IsActive.Equals(true)
orderby p.PostedDate descending
select new ViewModel
{
...
};
私がwhere p.IsActive.Equals(true)
近くに移動するfrom p in db.Posts
と、のように
var query = from p in db.Posts
where p.IsActive.Equals(true) //Moved
join a in db.Author on p.Author equals a
join u in db.Users on p.PostedBy equals u
orderby p.PostedDate descending
select new ViewModel
{
...
};
クエリのパフォーマンスに違いはありますか?