Jimmy Kane
Jimmy Kane

Reputation: 16825

What is the maximum size in MB of a batch write to Firestore

I am interested to know if the maximum size for a Firestore batch write is 10MB which is the Maximum API request size, or it's per Document eg 1MB leading up to 500MB. Or does this not matter?

Upvotes: 2

Views: 1479

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317352

As far as I can tell (using the nodejs SDK), a call to commit a batch will result in a single call to a CommitRequest API call, passing all documents in that call. If that's the case, then I imagine the 10MB limit for the entire API call will apply.

Upvotes: 5

Related Questions