From 7b36d0888faa802cc48c37c2532665110062581b Mon Sep 17 00:00:00 2001 From: Craig Edmunds Date: Tue, 10 Dec 2024 13:42:51 +0000 Subject: [PATCH] CDMS-179 optimises Movements ByItemCount analytics for bigger datasets (#11) --- Btms.Analytics/MovementsAggregationService.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Btms.Analytics/MovementsAggregationService.cs b/Btms.Analytics/MovementsAggregationService.cs index 3fc1ba1f..cc38d756 100644 --- a/Btms.Analytics/MovementsAggregationService.cs +++ b/Btms.Analytics/MovementsAggregationService.cs @@ -91,9 +91,7 @@ public Task 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(