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

use deleteMany for db cleaning #3

Open
sevenbitbyte opened this issue Oct 30, 2018 · 0 comments
Open

use deleteMany for db cleaning #3

sevenbitbyte opened this issue Oct 30, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@sevenbitbyte
Copy link
Member

sevenbitbyte commented Oct 30, 2018

DB cleaning as currently implemented could result in high network activity during cleanup. Use mongo db delete command instead

Current implementation

https://mongoosejs.com/docs/api.html#model_Model.deleteMany

https://docs.mongodb.com/manual/reference/method/db.collection.deleteMany/

@sevenbitbyte sevenbitbyte added the enhancement New feature or request label Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant