Live data from Hacker News

Google's Cloud Firestore (DBaaS) doesn't have a way to count records

news.ycombinator.com

1–4 of 4 posts

Re: Google's Cloud Firestore (DBaaS) doesn't have a way to count records

#3
While I completely empathize with you, that can be tricky in a fully distributed document store and to be fair, counting records in dynamodb is also a PITA.

Have you checked out using distributed counters to track the record count yourself? Read through the answers on this SO post. That might help.

https://stackoverflow.com/questions/46554091/firebase-firest...

Re: Google's Cloud Firestore (DBaaS) doesn't have a way to count records

#4
post #3

While I completely empathize with you, that can be tricky in a fully distributed document store and to be fair, counting records in dynamodb is also a PITA. Have you checked out using distributed counters to track the record count yourself? Read through the answers on this SO post. That might help. https://stackoverflow.com/questions/46554091/firebase-firest...

Fair point. Yea, this is the approach I ultimately settled on, but it surprised me to find out that such a simple operation as "count" isn't supported by firebase.