Firestore count API is cheap, but the cost is linear.
Counting 10M docs with it costs 10K document reads.
A cheaper way to count documents in a collection:
* Read 100-200 document IDs
* Get an order-of-magnitude estimate instantly
Try it out yourself:
puf.io/posts/firesto...
Firestore count API is cheap, but the cost is linear. Counting 10M docs with it costs 10K document reads. A cheaper way to count documents in a collection: * Read 100-200 document IDs * Get an order-of-magnitude estimate instantly Try it out yourself: puf.io/posts/firesto...
0 vue
Publié le 23/11/2026 21:50
0:06
Firestore count API is cheap, but the cost is linear.
Counting 10M docs with it costs 10K document reads.
A cheaper way to count documents in a collection:
* Read 100-200 document IDs
* Get an order-of-magnitude estimate instantly
Try it out yourself:
puf.io/posts/firesto...
0 commentaire
?