Skip to content

Commit

Permalink
CDMS-179 optimises Movements ByItemCount analytics for bigger datasets (
Browse files Browse the repository at this point in the history
  • Loading branch information
craigedmunds authored and Ian Shimmings committed Dec 12, 2024
1 parent 1fb4037 commit 7b36d08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Btms.Analytics/MovementsAggregationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ public Task<MultiSeriesDataset[]> ByUniqueDocumentReferenceCount(DateTime from,
})
.Select(g => new { g.Key.Linked, g.Key.DocumentReferenceCount, MovementCount = g.Count() });

var mongoResult = mongoQuery
.Execute(logger)
.ToList();
var mongoResult = mongoQuery.Execute(logger).ToList();

var dictionary = mongoResult
.ToDictionary(
Expand Down

0 comments on commit 7b36d08

Please sign in to comment.