-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Apply sample_for_compression
to all block-based tables
#8105
Conversation
Previously it only applied to files generated by flush. This restriction was undocumented and blocked a new use case. Now compression sampling applies to all files we generate when it is enabled. Test Plan: new unit test
@ajkr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
sample_for_compression
to all filessample_for_compression
to all block-based tables
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.
LGTM.
db/db_properties_test.cc
Outdated
return Status::OK(); | ||
} | ||
|
||
void BlockAdd(uint64_t /* blockRawBytes */, uint64_t blockCompressedBytesFast, |
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.
Nit: block_compressed_bytes_fast and block_compressed_bytes_slow?
To make the linter happy, we need to update the variable name in TablePropertiesCollector::BlockAdd()
too.
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.
Done.
@ajkr has updated the pull request. You must reimport the pull request before landing. |
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.
Thanks for the review!
db/db_properties_test.cc
Outdated
return Status::OK(); | ||
} | ||
|
||
void BlockAdd(uint64_t /* blockRawBytes */, uint64_t blockCompressedBytesFast, |
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.
Done.
@ajkr has updated the pull request. You must reimport the pull request before landing. |
@ajkr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Previously it only applied to block-based tables generated by flush. This restriction
was undocumented and blocked a new use case. Now compression sampling
applies to all block-based tables we generate when it is enabled.
Test Plan: new unit test