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

feat: impl Compaction #11

Merged
merged 7 commits into from
Jul 22, 2024
Merged

feat: impl Compaction #11

merged 7 commits into from
Jul 22, 2024

Conversation

KKould
Copy link
Contributor

@KKould KKould commented Jul 18, 2024

No description provided.

@KKould KKould requested a review from ethe July 18, 2024 09:23
@KKould KKould self-assigned this Jul 18, 2024
Ok(None)
}

pub(crate) async fn major_compaction(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too complicated method, please split it to several submethods.

let mut stream = MergeStream::<R, FP>::from_vec(streams).await?;

// Kould: is the capacity parameter necessary?
let mut builder = R::Columns::builder(8192);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 could be better if there is not a number, or we could provider a new method to create 0 capacity record batch builder.

@ethe ethe merged commit 96947e1 into main Jul 22, 2024
4 checks passed
@ethe ethe deleted the feat/compaction branch July 22, 2024 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants