Skip to content

Conversation

@FGasper
Copy link
Collaborator

@FGasper FGasper commented Nov 7, 2025

Previously, when running queries for the progress reports, verifier fetched all mismatches for all failed tasks. It would only display up to 40 mismatches, though … so even if there were thousands of mismatches, we discarded all but 40.

This changeset alters the logic so that 3 queries run in parallel:

  • fetch first 20 differing-content mismatches
  • fetch first 20 missing/changed mismatches
  • count all mismatches, dividing them into differing-content vs. missing/changed

Thus, the server only returns & parses up to 40 documents for these queries, which is much lighter than returning every single mismatch for all tasks.

@FGasper FGasper requested a review from tdq45gj November 7, 2025 18:49
Copy link
Collaborator

@tdq45gj tdq45gj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FGasper FGasper merged commit 647cc40 into mongodb-labs:main Nov 11, 2025
99 checks passed
@FGasper FGasper deleted the felipe_optimize_progress_reports branch November 11, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants