文档更新-保持不变的更新是否仍需花费1次写入费用? [英] Document Updates - Do updates with no changes still cost 1 write?

查看:47
本文介绍了文档更新-保持不变的更新是否仍需花费1次写入费用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档更新(从客户端进行更新)与Firestore服务器副本在写入次数上仍然没有区别吗?

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 function that is listening for updates also be invoked?

推荐答案

文档会全部更新,从而产生记帐费用.但是,如果文档中的数据实际上没有更改,则不会调用Cloud Functions和实时侦听器.我怀疑可能会调用侦听器的唯一情况是,如果客户端本身尝试对正在侦听的同一文档进行更新,但我不确定.

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.

这篇关于文档更新-保持不变的更新是否仍需花费1次写入费用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆