Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add number of documents as a size metric to a collection #904

Open
pboros opened this issue Mar 6, 2023 · 0 comments
Open

Add number of documents as a size metric to a collection #904

pboros opened this issue Mar 6, 2023 · 0 comments

Comments

@pboros
Copy link
Contributor

pboros commented Mar 6, 2023

Is your feature request related to a problem? Please describe.
Like the size metrics, we should have a metric counting the number of documents in a collection.

Describe the solution you'd like
At the time of updating or deleting a document, increment/decrement the counter.

Describe alternatives you've considered
A background task could query the count from FoundationDB but it's probably more expensive. Tally counter manipulation is cheap and asynchronous.

@pboros pboros self-assigned this Mar 6, 2023
@ovaistariq ovaistariq added this to Tigris Mar 6, 2023
@ovaistariq ovaistariq moved this to 📋 Backlog in Tigris Mar 6, 2023
@pboros pboros moved this from 📋 Backlog to 🏗 In progress in Tigris Mar 15, 2023
@pboros pboros moved this from 🏗 In progress to 📋 Backlog in Tigris Mar 15, 2023
@pboros pboros moved this from 📋 Backlog to 🆕 New in Tigris Apr 5, 2023
@pboros pboros moved this from 🆕 New to 📋 Backlog in Tigris Apr 5, 2023
@ovaistariq ovaistariq moved this from 📋 Backlog to 🆕 New in Tigris Apr 11, 2023
@pboros pboros moved this from 🆕 New to ✅ Done in Tigris Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants