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

Help with writing more than 25 documents to Begin Data #55

Open
crtr0 opened this issue Jul 16, 2020 · 0 comments
Open

Help with writing more than 25 documents to Begin Data #55

crtr0 opened this issue Jul 16, 2020 · 0 comments

Comments

@crtr0
Copy link

crtr0 commented Jul 16, 2020

Begin Data allows you to either set a single document, or an array of documents. But the array is limited to 25 documents.

If you want to write, say, 532 documents you will have to batch them into groups of 25. If you don't, if you try to issue 532 set calls (a naive approach) the Lambda will likely time-out. So batching for list sizes > X is effectively mandatory.

So, it would be lovely if Begin Data either:

  • Auto batched calls to set where the array is > 25 documents or
  • Provides a one-liner helper method to break up a large array into an array of smaller arrays each 25 documents or less
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