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

Index rebuild should rebuild only the index its responsible for #137

Open
apkar opened this issue Apr 4, 2019 · 2 comments
Open

Index rebuild should rebuild only the index its responsible for #137

apkar opened this issue Apr 4, 2019 · 2 comments
Milestone

Comments

@apkar
Copy link
Contributor

apkar commented Apr 4, 2019

Index rebuild code relies on the plugin model to trigger the rebuild of a document. It touches a document, which initiates the rebuild of all indexes on that document. Although it doesn't affect the correctness of the code, it is bad for performance. It's relatively easy to change this behavior by rebuilding different collection context. We should be a bit careful with it. We need more testing around that.

@dongxinEric
Copy link
Contributor

Just to clarify: by rebuild, you really meant index update right? Cause rebuild in MongoDB is something like building a new index

@dongxinEric
Copy link
Contributor

Talked offline, this is indeed referring to the rebuild of an index.

@apkar apkar added this to the 1.8.0 milestone Apr 8, 2019
@apkar apkar modified the milestones: 1.8.0, 2.0.0 Aug 12, 2019
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

No branches or pull requests

2 participants