Skip to content
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

TASK-6754 - Create cohort with more than 1000 samples lead to MongoDB restarts #2517

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

pfurio
Copy link
Member

@pfurio pfurio commented Oct 11, 2024

No description provided.

@pfurio pfurio requested a review from j-coll October 11, 2024 09:57
@halender
Copy link
Contributor

updateFamilyReferenceInIndividuals(clientSession, family, missingIndividualIds, oldIndividualIds);
updateRoles = true;
familyMemberIds = new ArrayList<>(newIndividualIds);
SnapshotVersionedMongoDBAdaptor.FunctionWithException<Family> updateFamilyReferences = (familyList) -> {
Copy link
Member

Choose a reason for hiding this comment

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

This extra large lambda could have been moved to a private function, with something in the name that hints you that the function must be called from some special environment, or as a callback:

private updatefamilyReferencesCallback(List<Document> familyList, ... )

Or even have an internal private static class to make it even clearer. This might be usefull if you wanted to add extra functionality

@j-coll j-coll changed the title TASK-6754: Create cohort with more than 1000 samples lead to MongoDB restarts TASK-6754 - Create cohort with more than 1000 samples lead to MongoDB restarts Oct 18, 2024
@pfurio pfurio merged commit d42fd7f into release-3.x.x Oct 22, 2024
5 of 6 checks passed
@pfurio pfurio deleted the TASK-6754 branch October 22, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants