-
Notifications
You must be signed in to change notification settings - Fork 465
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
[persist] Prioritize structured data in the batch builder #30643
Conversation
ac3ed36
to
a496901
Compare
Partial nightlies: https://buildkite.com/materialize/nightly/builds/10551 |
a496901
to
1a335eb
Compare
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.
Fantastic!
@@ -65,7 +65,7 @@ pub enum BatchColumnarFormat { | |||
impl BatchColumnarFormat { | |||
/// Returns a default value for [`BatchColumnarFormat`]. | |||
pub const fn default() -> Self { | |||
BatchColumnarFormat::Row | |||
BatchColumnarFormat::Both(2) |
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.
Woohoo!! 🚀
1a335eb
to
144ec98
Compare
This requires updating the threshold in some tests... the new stuff uses the `goodbytes` estimates, which exclude some stuff that used to be included.
Previously this was split between BatchBuilder and BatchBuilderInternal; now it's all in BatchBuilder, and the lower-level code only deals with part-size chunks.
78c33ea
to
5ebea69
Compare
Picking this up again now that we're widely rolled out, it turns out that some benchmarks are showing regressions after the final commit. I didn't have time to chase that error down before the holidays, so I'm going to slice that commit off and try to get the rest of this merged so it doesn't rot by the time I'm back... |
This is a nice milestone: it's the last codepath that could only handle codec data; now both are always handled in parallel. However, we don't allow disabling codec-data writes yet!
Motivation
Part of: https://github.com/MaterializeInc/database-issues/issues/7411
Tips for reviewer
Lots of code movement... might be easiest to follow commit-by-commit.
Checklist
$T ⇔ Proto$T
mapping (possibly in a backwards-incompatible way), then it is tagged with aT-proto
label.