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

Clean actions attribute of Bulk struct #384

Open
GonzMG opened this issue Nov 27, 2019 · 0 comments
Open

Clean actions attribute of Bulk struct #384

GonzMG opened this issue Nov 27, 2019 · 0 comments

Comments

@GonzMG
Copy link

GonzMG commented Nov 27, 2019

I'm using (b *Bulk) Update(pairs ...interface{}) to modify a huge quantity of data in a collection. To avoid memory errors, I'm using batches to perform the bulk.Run().

The problem I've found is the bulk class does not clean the the array of actions actions []bulkAction. Should we add a method to clean this variable or in the Run() function set the array as empty?

Thanks in advance!

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

1 participant