Skip to content

Clean actions attribute of Bulk struct #384

@GonzMG

Description

@GonzMG

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions