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

Add option to allow mongorestore to build indexes in the foreground #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alexey62soft
Copy link

@alexey62soft alexey62soft commented Aug 2, 2021

The original topic for this PR: https://jira.mongodb.org/browse/TOOLS-936

This PR changes the default behavior of index creation operation:

  • now all indexes will be created in the background by default;
  • if we provide AllowForegroundIndexBuild option - the index creation mode will be selected using index metadata (background option);
  • if we provide the ForceForegroundIndexBuild option - each index will be created in the foreground.

@alexey62soft alexey62soft marked this pull request as ready for review August 2, 2021 19:17
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.

1 participant