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

前端 未结 2 1186
不思量自难忘°
不思量自难忘° 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: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.

提交回复
热议问题