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

Feature request: batched writes #65

Open
maria-le opened this issue Oct 27, 2019 · 6 comments · May be fixed by #144
Open

Feature request: batched writes #65

maria-le opened this issue Oct 27, 2019 · 6 comments · May be fixed by #144

Comments

@maria-le
Copy link

I looks like, at the moment, if I want to write many records at once, I have to either do a series of individual document writes. Or I have to write all the records to a single doc. It would be great to be able to create and write out to many docs simultaneously and atomically.

@maria-le maria-le changed the title Feature suggestion: batched writes Feature request: batched writes Oct 27, 2019
@LaughDonor
Copy link
Collaborator

We'll need to add support for the following API Endpoints:

LaughDonor referenced this issue Jul 11, 2020
Update Tests to sync with Shields and Github caching.
Fix Tests that couldn't fail.
Update README and packages.
@lahirue
Copy link

lahirue commented Aug 2, 2020

This is a very useful feature. Without this feature , its a useless library for a production application. Batch Writes , Batch Updates are critical in production mode. Hope this feature will be implemented soon.

@chintananand
Copy link

First of all, kudos to the entire team for developing this library. it's pretty simple and very useful.

Batch operations are must to have feature for this library. Google has restricted usage of read and write operations - and due to this limitation in a very short span of time the limit gets exhausted. Due to sequential processing ulrfetch which is used internally is eating up the cap.
Exception: Service invoked too many times for one day: urlfetch.
at method_(Request:48:38)
at patch(Request:108:21)
at updateDocument_(FirestoreWrite:47:36)
at updateDocument(Firestore:95:21)

Request you to please add the capability at your earliest.

@mellowcello77
Copy link

mellowcello77 commented Sep 23, 2021

Batch writes is a must for me, I would definitely used this for production if it was available.

@abkarino
Copy link

abkarino commented Oct 4, 2022

For my use case, I have a huge number of writes but due to the update document mask exceeding the limit, I have to read and merge the data manually. A batched write or a transaction would allow the mask to be included in the body of the request rather than in the url query.

@abkarino abkarino linked a pull request Oct 5, 2022 that will close this issue
6 tasks
@michaelconan
Copy link

Also would be interested in using this library but no way I can use without batch write function, which appears to have been open for a year without clear progress.
I'll carry on with my own rough implementation... :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants