-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[ENH] Add num_records_last_compaction to sysdb #3463
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
[ENH] Add num_records_last_compaction to sysdb #3463
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only saw the proto changes, and some bit of golang changes.
My main question is - why are we passing record count via Create and Update as opposed to something like FlushCollectionCompaction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sysdb side of changes looks good to me.
Just keep in mind that when you make the schema change, the existing rows will have a value "NULL" for the new field.
Since, we use gorm, it will set the value to 0, so for existing rows sysdb will return 0 for total_records field. Keep this in mind when you deploy and consume this field.
## Description of changes *Summarize the changes made by this PR.* - New functionality - Adds `num_records_last_compaction` to distributed sysdb ## Test plan *How are these changes tested?* - [x] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?*
Description of changes
Summarize the changes made by this PR.
num_records_last_compaction
to distributed sysdbTest plan
How are these changes tested?
pytest
for python,yarn test
for js,cargo test
for rustDocumentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?