离线时超过30分钟,Firestore会向我们收费吗? [英] Is Firestore charging us when offline more than 30 minutes?

查看:50
本文介绍了离线时超过30分钟,Firestore会向我们收费吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了此 answer ,道格·史蒂文森(Firebase工程师)说:

I read this answer, where Doug Stevenson (Firebase engineer) said:

缓存的文档读取不收费.

Cached document reads are not charged.

但是我读了文档:

此外,如果侦听器断开了30分钟以上的连接(例如,如果用户离线),则将向您收取读取费用,就好像您发出了全新的查询一样.

Also, if the listener is disconnected for more than 30 minutes (for example, if the user goes offline), you will be charged for reads as if you had issued a brand-new query.

因此,即使我下线了,即使我没有更改任何文档,也要收费吗?因此,已经缓存的数据在30分钟后不再视为已缓存的数据了吗?

So if I'm going offline, even if I haven't changed any document, am I charged again? So the data that is already cached, isn't consider a cached data after 30 minutes anymore?

希望有人可以帮助我解决这种令人烦恼的情况.预先感谢!

Hope someone can help me about this annoying situation. Thanks in advance!

推荐答案

如果缓存可以满足重新连接的查询,则每个缓存的文档仍不收取任何读取费用.即使查询没有返回比缓存中新的新结果,您仍然要为查询本身支付一次读取费用.

If the cache can satisfy the reconnected query, then there are still no reads charged for each cached document. You are still charged a single read for the query itself, even if it returns no new results that are newer than what's in the cache.

最低查询费用

您每次查询至少要读取一份文档 执行,即使查询没有返回结果.

There is a minimum charge of one document read for each query that you perform, even if the query returns no results.

这篇关于离线时超过30分钟,Firestore会向我们收费吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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