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

[ready] create indexes in background by default #828

Merged
merged 2 commits into from
Apr 12, 2012
Merged

[ready] create indexes in background by default #828

merged 2 commits into from
Apr 12, 2012

Conversation

aheckmann
Copy link
Collaborator

every time we connect to the db with mongoose, all indexes defined in schemas are created using ensureIndex but without the background: true option set.

index creation blocks the entire collection while running if the background option is not set.

this pull request changes our default behavior to create all indexes in the background.

rauchg added a commit that referenced this pull request Apr 12, 2012
[ready] create indexes in background by default
@rauchg rauchg merged commit 6e9d36d into Automattic:master Apr 12, 2012
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