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

查看:17
本文介绍了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.

另见:

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

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