Anton
Anton

Reputation: 1001

Firebase max writes in a cloud function

I'm trying to stuff my Cloud Firestore database with data using batch writes and wondering how many writes can a Cloud Function tolerate before it got removed by timeout?

So far I was able to push 20K rows. Does any one know what is the limit if any?

Thanks

Upvotes: 0

Views: 76

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317352

There is no set limit for writes. All the writes will complete if there is time for them to complete. Cloud Functions just imposes a limit of time. Cloud Functions time out after 60 seconds by default. That can be configured up to 540 seconds.

Upvotes: 2

Related Questions