Skip to content

Commit

Permalink
Do the GroupBy after the ToList because it somehow messes with all th…
Browse files Browse the repository at this point in the history
…ose EF Include statements and hey we can afford a few extra cycles for hash bucketing.
  • Loading branch information
Tim Lovell-Smith committed Aug 14, 2013
1 parent e04cf1f commit 5633873
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -34,8 +34,8 @@ public override void ExecuteCommand()
.Include(pe => pe.Package)
.Include(pe => pe.Package.PackageRegistration)
.Include(pe => pe.Package.User)
.GroupBy(pe => pe.PackageKey)
.ToList();
.ToList()
.GroupBy(pe => pe.PackageKey);

// Do edit with a 'most recent edit to this package wins - other edits are deleted' strategy.
// Not doing editing in parallel because
Expand Down

0 comments on commit 5633873

Please sign in to comment.