-
Notifications
You must be signed in to change notification settings - Fork 422
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 stats information to bucket/collection/record. #360
Comments
👍 No there isn't, but it's a good idea. Related #173 |
@msathis do you have an idea of how you would like to access this information? You can already have the number of records in a particular collection doing a head request to it:
|
@Natim The properties i would like to see in stats object
|
And the data property in the response contains only last_modified property. It can also return created_at timestamp as well. |
Thank you for this it is really interesting 👍 |
I don't think that one is easy to implement. When you have a stack with several nodes, you would need to have a complex implementation to be able to have that info. What is your use case for this info ? |
The proposition is to add on collection a readonly stats parameter such as permissions and data which contains: For buckets
For collections
|
Here are the two items I suggest we add in the collection or bucket metadata (and not used for the signing)
Those two fields will be useful to implement a quota feature among other things. I don't think it should be added as a plugin. It sounds like a core feature that can be added without having to deal with plugin indirections, in particular if we have to deal with conflict resolutions at some point. If we reach the consensus on how those two fields are stored we can do what @leplatrem suggested:
@msathis What is the use case for the created_at field ? |
It is already possible to get the |
What's the status of this ? Does the built-in plugin BTW created date was later reported in issue #679 |
Stats like no of documents, how much memory it holds etc will be useful.
The text was updated successfully, but these errors were encountered: