Skip to content

Feat bulk callbacks#553

Merged
abnegate merged 17 commits intomainfrom
feat-bulk-callbacks
Apr 14, 2025
Merged

Feat bulk callbacks#553
abnegate merged 17 commits intomainfrom
feat-bulk-callbacks

Conversation

@abnegate
Copy link
Copy Markdown
Member

@abnegate abnegate commented Apr 14, 2025

Because we accumulate all documents for create/update/upsert/delete documents, we can run into memory issues with large data sets. To mitigate the issue, we change the bulk methods to accept a callback which will fire for each document, instead of returning all documents in an array. Methods will return an integer notifying how many documents were modified - and a callback must be passed to post-process data.

@abnegate abnegate marked this pull request as ready for review April 14, 2025 06:02
@abnegate abnegate merged commit e589efd into main Apr 14, 2025
14 checks passed
@abnegate abnegate deleted the feat-bulk-callbacks branch April 14, 2025 07:39
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.

1 participant