Firestore是否向Cloud Function收取Cloud Function的费用以获取每个检索到的文档的读数? [英] Does Firestore charge Cloud Function Get reads per retrieved documents?

查看:36
本文介绍了Firestore是否向Cloud Function收取Cloud Function的费用以获取每个检索到的文档的读数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在第二种情况下,Firebase是否会在第一种情况下收取更多的费用?

Does Firebase charge more money in the first over the second scenario?

collection().get() // potentially retrieves infinite documents

collection().limit(smallerAmount).get() // only retrieve a smaller amount of documents

文档中,GCP内有一些没有计费的流量,但是我不确定这是否适用于 Firestore 读取请求 .
我假设帐单与 Cloud Functions 相同,对我的客户来说是 ,并且更多的文档是由 get()检索的打电话给更多的人.

In the documentation, there is some none billed traffic within GCP, but I am not sure if this applies to Firestore read requests.
I am assuming that billing is the same for Cloud Functions as it is for my client and that the more documents are retrieved by a get() call the more one gets charged.

推荐答案

您的问题是问几个彼此之间并不真正相关的问题.

Your question is asking several questions that are not really related to each other.

首先,文档读取与出口和入口不同.读取文档是简单地执行要求在Firestore中访问文档的查询的结果.它没有考虑发送该文档内容所需的网络数据量,这称为出口.

First, document reads are not the same as egress and ingress. A document read is a result of simply making a query that requires the access of a document in Firestore. It doesn't take into account the amount of network data required to send the contents of that document, which is called egress.

第二,出口仅通过从您的云服务传输的字节数来衡量.当数据停留在某个区域内时,可能不会向出口收取费用-文档将很清楚.出口与文档读取的计费无关.

Second, egress is measured only by the number of bytes transferred from your cloud services. Egress may not be charged when the data stays within a region - the documentation will be clear on that. Egress has nothing to do with the billing for document reads.

第三,无论请求来自何处,都将对文档读取进行收费.可以将其视为使用Firestore索引快速进行查询的成本.它与出口无关,而与满足查询条件所必须触摸的文档数量有关.

Third, document reads are charged no matter where the request originates. Think of it as the cost of using a Firestore index to make queries fast. It has nothing to do with egress, and everything to do with the number of documents that must be touched to satisfy the query.

第四,任何查询比其他查询读取更多文档,将花费更多.您只需为必须将文档内容传输到客户端的文档读取操作付费.

Fourth, any query that reads more documents than another query will cost more. You are only charged for document reads where the contents of the documents must be transferred to the client.

这篇关于Firestore是否向Cloud Function收取Cloud Function的费用以获取每个检索到的文档的读数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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