I'm not sure exactly how the XRM library converts LINQ to the Query Expressions but the Query Expressions have no concept of as parallel(). So I would guess that xrm.AccountSet.AsParallel()
would have worse performance than xrm.AccountSet.FirstOrDefault()
.
But in an effort to teach a man to fish rather than giving him one, read Eric Lippert's answer Which is faster?.