Implement getCountFromServer #10236
Answered
by
stact
hyungtaecf
asked this question in
Feature request
-
It always was needed to read each document to get the count of documents in a collection. That is very expensive. |
Beta Was this translation helpful? Give feedback.
Answered by
stact
Jan 28, 2023
Replies: 1 comment 1 reply
-
Hey @hyungtaecf Seems to be already implemented final snapshot = await yourCollection.count().get();
log(snapshot.count) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hyungtaecf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @hyungtaecf
Seems to be already implemented