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

support using RemoveAll($in) instead of Bulk. #32

Merged
merged 1 commit into from
Apr 21, 2017

Conversation

jameinel
Copy link
Member

Mongo 2.4 doesn't support bulk operations anyway, but this still
allows us to do a little bit more batching instead of removing
exactly one-by-one.

Just introduces another Remover type and switches between them based on $out support.
That may not be the exactly right signal, but it is a close approximation that didn't make me
need to think about it significantly.

Mongo 2.4 doesn't support bulk operations anyway, but this still
allows us to do a little bit more batching instead of removing
exactly one-by-one.
Copy link

@mjs mjs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I'll have to do another mgopurge release once this has merged.

@jameinel jameinel merged commit 5c6f1c4 into juju:master Apr 21, 2017
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