Document Updates - Do updates with no changes still cost 1 write?

前端 未结 2 1168
不思量自难忘°
不思量自难忘° 2021-01-14 19:59

Do document updates, where the update from a client, has no difference with the Firestore server copy still cost in terms of number of writes?

Also would a cloud fun

相关标签:
2条回答
  • 2021-01-14 20:37

    According to the Cloud Firestore Pricing documentation, each set() or update() operation will count as a write. In this case, you will still be charged with the cost of 1 write when called with new changes or not.

    0 讨论(0)
  • 2021-01-14 20:44

    Document updates all incur billing for a write. But Cloud Functions and realtime listeners will not be invoked if data doesn't actually change in the document. The only situation where I suspect a listener might be invoked is if the client itself attempts to make an update to the same document it's listening to, but I'm not sure about that.

    0 讨论(0)
提交回复
热议问题