Skip to content

Commit 935abd9

Browse files
committed
Revert 32598
1 parent 4667628 commit 935abd9

File tree

4 files changed

+3
-17
lines changed

4 files changed

+3
-17
lines changed

misc/python/materialize/mzcompose/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def get_default_system_parameters(
155155
# 16 MiB - large enough to avoid a big perf hit, small enough to get more coverage...
156156
"persist_blob_target_size": "16777216",
157157
# 5 times the default part size - 4 is the bare minimum.
158-
"persist_compaction_memory_bound_bytes": "83886080",
158+
#"persist_compaction_memory_bound_bytes": "83886080",
159159
"persist_stats_audit_percent": "100",
160160
"persist_use_critical_since_catalog": "true",
161161
"persist_use_critical_since_snapshot": "false" if zero_downtime else "true",

misc/python/materialize/parallel_workload/action.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,13 +1064,6 @@ def __init__(
10641064
"16",
10651065
"1000",
10661066
]
1067-
self.flags_with_values["persist_compaction_memory_bound_bytes"] = [
1068-
# 64 MiB, 1 * 128 MiB, 4 * 128 MiB, 8 * 128 MiB
1069-
"67108864",
1070-
"134217728",
1071-
"536870912",
1072-
"1073741824",
1073-
]
10741067
self.flags_with_values["persist_part_decode_format"] = [
10751068
"row_with_validate",
10761069
"arrow",

src/persist-client/src/internal/compact.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -596,13 +596,8 @@ where
596596

597597
// Prepare memory bounds for compaction
598598
let in_progress_part_reserved_memory_bytes = 2 * cfg.batch.blob_target_size;
599-
// - then remaining memory will go towards pulling down as many runs as we can.
600-
// We'll always do at least two runs per chunk, which means we may go over this limit
601-
// if parts are large or the limit is low... though we do at least increment a metric
602-
// when that happens.
603-
let run_reserved_memory_bytes = cfg
604-
.compaction_memory_bound_bytes
605-
.saturating_sub(in_progress_part_reserved_memory_bytes);
599+
let run_reserved_memory_bytes =
600+
cfg.compaction_memory_bound_bytes - in_progress_part_reserved_memory_bytes;
606601

607602
// Flatten the input batches into a single list of runs
608603
let ordered_runs =

src/txn-wal/src/txn_cache.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use std::fmt::Debug;
1515
use std::ops::{Deref, DerefMut};
1616
use std::sync::Arc;
1717

18-
use differential_dataflow::consolidation::consolidate_updates;
1918
use differential_dataflow::hashable::Hashable;
2019
use differential_dataflow::lattice::Lattice;
2120
use itertools::Itertools;
@@ -463,7 +462,6 @@ impl<T: Timestamp + Lattice + TotalOrder + StepForward + Codec64 + Sync> TxnsCac
463462
// which is not what we want. If we ever expose an interface for
464463
// registering and committing to a data shard at the same
465464
// timestamp, this will also have to sort registrations first.
466-
consolidate_updates(&mut entries);
467465
entries.sort_by(|(a, _, _), (b, _, _)| a.ts::<T>().cmp(&b.ts::<T>()));
468466
for (e, t, d) in entries {
469467
match e {

0 commit comments

Comments
 (0)