From 50f12661da4026624cf89b14cdffe76a2c0f075a Mon Sep 17 00:00:00 2001 From: Eric Brousseau Date: Fri, 18 Sep 2026 14:46:21 -0700 Subject: [PATCH] adding match to reduce number of tables to only ones where username has a score --- src/utils/pipeline.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/pipeline.js b/src/utils/pipeline.js index 5a44800..611a3a7 100644 --- a/src/utils/pipeline.js +++ b/src/utils/pipeline.js @@ -461,6 +461,7 @@ const getCompetitionWeeks = (limit, offset, searchTerm, week, channelName) => { const getScoresByPlayer = (username) => { const pipeline = [ + { $match: { "authors.versions.scores.username": username } }, { $unwind: "$authors" }, { $unwind: {