Skip to content

REP-5963 Migrate recheck queue to per-generation collections #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 17, 2025

Conversation

FGasper
Copy link
Collaborator

@FGasper FGasper commented Apr 16, 2025

Previously we stored the entire recheck queue in a single collection. This meant that, when we finished a generation, we had to “surgically” delete all rechecks for the old generation.

This changeset alters the metadata so that, rather than a storing rechecks in a single collection, we store them in generation-specific collections like recheckQueue_gen0, recheckQueue_gen1, etc. That way, when we want to clean out a prior generation’s recheck queue, we just drop a collection, which is much faster than deleting 100s of millions of individual recheck documents.

@FGasper FGasper requested review from tdq45gj and autarch April 16, 2025 19:21
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!

Copy link
Collaborator

@autarch autarch 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 ccff9aa into mongodb-labs:main Apr 17, 2025
50 checks passed
@FGasper FGasper deleted the REP-5963-per-generation-recheck branch April 17, 2025 16:35
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.

3 participants