Cloud Firestore:如何计算读数? [英] Cloud Firestore: How is read calculated?

查看:47
本文介绍了Cloud Firestore:如何计算读数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Cloud Firestore中,我们需要支付读/写/删除操作的费用.也许这对于某些人来说是显而易见的,但我在任何地方都找不到被视为已读的内容.如果我有10条记录的集合,并且以列表的形式获取它们,那么它算作10次读取还是1次(因为我从数据库中只读取了一次)?

In Cloud Firestore we are charged for read/write/delete operations. Perhaps this is obvious for some but I could not find anywhere what is considered read. If I have a collection of 10 records and I fetch them all in form of a list, does it count as 10 reads or 1 (since I read only once from the database)?

推荐答案

由于您要阅读10份文档,因此需要为10份文档阅读收取费用.您使用的已读API调用数与此处无关.

Since you're reading 10 documents, so you'll be charged for 10 document reads. The number of read API calls you use is not relevant here.

另请参阅:

  • Firestore read/write pricing; does .limit(25) counts as 25 reads or one?
  • Understanding Firestore Pricing
  • Firestore Pricing - Does The Amount Of Documents In A Collection Matters?
  • QuizApp - Firebase/ FireStore Reads

这篇关于Cloud Firestore:如何计算读数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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