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

Removing all documents can be optimized #152

Open
apkar opened this issue Apr 10, 2019 · 1 comment
Open

Removing all documents can be optimized #152

apkar opened this issue Apr 10, 2019 · 1 comment
Milestone

Comments

@apkar
Copy link
Contributor

apkar commented Apr 10, 2019

Dropping a collection is faster than removing all documents. As dropping a collection just removes subspaces. But, remove goes through all documents one after another and updates indexes. If the filter is matching all documents it could be optimized to clear the subspaces.

@dongxinEric
Copy link
Contributor

Just to clarify: we need to clean the subspaces for index entries and documents all together.

@apkar apkar added this to the 1.8.0 milestone Apr 15, 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