Does a Firestore batch.set() to a same document counts as one document write?

batch.set() does not directly cost any document writes. It is just queuing up a change locally before being sent to Firestore. No billing occurs until you call batch.commit() successfully. At that point, you will be charged as many document writes as are changes in the entire batch. So, if you only write one document in the batch, you will be charged on document write.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top