-
Notifications
You must be signed in to change notification settings - Fork 752
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
feat(storage): Improve optimize table compact #6373
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Thanks for the contribution! Please review the labels and make any necessary changes. |
Hi @zhyass |
use crate::storages::fuse::statistics::reducers::reduce_statistics; | ||
use crate::storages::fuse::FuseTable; | ||
|
||
pub struct CompactMutator<'a> { |
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.
Naming is much better than DeletionCollector
👍
@zhyass 👍 finally, the |
This pull request's title is not fulfill the requirements. @zhyass please update it 🙏. The title should contain one if the following tags:
|
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
Wait for another reviewer approval |
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
The previous compact strategy was to insert the data overwrite directly, it's a "simple and violent" strategy.
Now it is modified to select the appropriate block for compact, and then reorganize the blocks into new segments.
Changelog
Related Issues
Fixes #6372