Skip to content

Commit 582e67d

Browse files
committed
change default levelled base size to 64M
1 parent 53497e2 commit 582e67d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lsm-tree/src/compaction/levelled.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ pub struct Strategy {
2222

2323
/// Target segment size (compressed)
2424
///
25-
/// Default = 128 MiB
25+
/// Default = 64 MiB
2626
///
27-
/// Same as `sstable_size_in_mb` in Cassandra
27+
/// Same as `target_file_size_base` in RocksDB
2828
pub target_size: u32,
2929
}
3030

3131
impl Default for Strategy {
3232
fn default() -> Self {
3333
Self {
3434
l0_threshold: 4,
35-
target_size: 128 * 1_024 * 1_024,
35+
target_size: 64 * 1_024 * 1_024,
3636
}
3737
}
3838
}

0 commit comments

Comments
 (0)