Firestore定价-馆藏中的文件数量是否重要? [英] Firestore Pricing - Does The Amount Of Documents In A Collection Matters?

查看:37
本文介绍了Firestore定价-馆藏中的文件数量是否重要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了文档,该文档的收费是我向readwriteupdate documents发出的请求.我还了解到,阅读collection的价格与阅读document的价格相同("对于文档读取以外的查询,例如要求收集ID的清单,您需要为一个文档付费阅读.),如果我写错了,请纠正我.

I have read in the documentation that I'm being charged for the amount of the requests I'm making to read, write or update documents. I have also read that reading a collection is priced the same as a reading a document ("For queries other than document reads, such as a request for a list of collection IDs, you are billed for one document read."), correct me if I'm wrong.

我的问题是:读取其中包含大量documentscollection(比如10,000 documents)的价格是否与读取10的价格相同?

My question is: Does reading a collection with a big amount of documents in it (let's say - 10,000 documents) is priced the same as reading one with 10?

我想对此进行一些解释...

I'd like to get some explaination about it...

推荐答案

这取决于您读取集合"的意思,但是对于大多数人而言,这意味着从集合中查询一堆文档".答案是,定价通常取决于所检索文档的数量.

It depends on what you mean by "reading a collection", but for most people this means "querying a bunch of documents from a collection". And the answer is that the pricing generally depends on the number of documents retrieved.

稍微简化一下事情:

如果您有10名员工的集合,并且运行collection("employees").get()呼叫,您将取回10名员工文档,并按10次阅读收费.

If you have a collection of 10 employees and you run a collection("employees").get() call, you will get back 10 employee documents, and be charged for 10 reads.

如果您有10,000名员工,并且运行collection("employees").get()呼叫,您将获得10,000名员工,并需要为10,000次读取付费.

If you have a collection of 10,000 employees and you run a collection("employees").get() call, you will get back 10,000 employees, and be charged for 10,000 reads.

如果您有10,000名员工,并且运行collection("employees").get().limit(10)通话,您将获得10名员工,并需要进行10次读取操作.

If you have a collection of 10,000 employees and you run a collection("employees").get().limit(10) call, you will get back 10 employees, and be charged for 10 reads.

如果您有10,000名员工的集合,其中有4名被称为"Courtney",并且您拨打了collection("employees").where("first_name", "==", "Courtney")电话,您将获得4名员工的薪水,并要进行4次读取操作.

If you have a collection of 10,000 employees, 4 of which are named "Courtney" and you run a collection("employees").where("first_name", "==", "Courtney") call, you will get back 4 employees and be charged for 4 reads.

这篇关于Firestore定价-馆藏中的文件数量是否重要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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