google-cloud-firestore - Firestore sub documents read pricing
问题描述
Firestore if I read a collection and the collection contains 100 documents then is firebase calculate it as 100 read operation or 1 read operation?
If my 1 document contains another 2 collections and each sub collection contains 10 docs then How much will be the total read count in this case? if it counts subcollection and it doc separately then Firestore is very very high pricing
解决方案
如果您从包含 100 个文档的集合中读取所有文档,那么您正在阅读 100 个文档。因此,您需要为 100 次文档读取付费。
如果您正在阅读子馆藏中的文档,那么您也需要为您阅读的每份文档付费。
如果您正在努力寻找在灵活结构和限制所需读取次数之间取得平衡的数据模型,我建议您观看“了解 Cloud Firestore”视频系列,特别是以下几集:
推荐阅读
- algorithm - 查找递归调用在 for 循环中的函数的时间复杂度
- python-3.x - 如何使用 TFIDF 创建嵌入矩阵?
- visual-studio-code - 在扩展的任务中调用用户定义的输入
- sql - 使用多个表并以 ID 引用的 SQL 模式名称
- sql - Oracle SQL 列表间隔
- go - 使用 sqlmock 进行单元测试时在 INSERT 上出现错误“不期望查询”
- node.js - 在 hyperleger 结构中向一个组织管理员发送消息给另一个组织管理员
- reactjs - 使用 Redux Hooks 而不是 connect() 好的设计吗?
- javascript - 如何在警报中显示“允许来自...的对话框将您带到他们的标签”?
- java - 如何在 Spring Boot Rest api 响应的 ResponseEntity 中添加自定义属性