首页 > 解决方案 > Firestore 中 .orderBy("id").startAt(n).limit(1) 的成本?

问题描述

在 Firestore 中进行这样的查询的成本是多少?

collection.orderBy("id").startAt(n).limit(1);

标签: firebasegoogle-cloud-firestore

解决方案


您需要为在服务器上为您读取的每份文档支付一份文档读取费用。由于查询仅读取一份文档,因此您只需支付一份已读取文档的费用。


推荐阅读