Skip to content

[persist] Add a HollowBatch::push_run method and convert usages #32955

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bkirwi
Copy link
Contributor

@bkirwi bkirwi commented Jul 8, 2025

Motivation

https://github.com/MaterializeInc/database-issues/issues/9194, indirectly... it's always been painful having to carefully assemble several vecs with strict relationships between them, and it's even more painful for stuff like incremental compaction that works run by run.

@bkirwi bkirwi marked this pull request as ready for review July 9, 2025 22:01
@bkirwi bkirwi requested a review from a team as a code owner July 9, 2025 22:01
@bkirwi
Copy link
Contributor Author

bkirwi commented Jul 10, 2025

Nightlies are clean: https://buildkite.com/materialize/nightly/builds?branch=bkirwi%3Abatch-push

My main concern here was a perf regression, since we're doing more copies of metadata on the write path... but it seems to come out in the wash.

Comment on lines +1055 to +1056
// This call means that pushing runs one-at-a-time _in debug mode_ is quadratic
// in the number of runs. If this is too slow even in tests, we can remove the check.
Copy link
Member

Choose a reason for hiding this comment

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

I would be surprised if this were a problem

Copy link
Member

@DAlperin DAlperin left a comment

Choose a reason for hiding this comment

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

Yeah, I like this API. Very clean

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