Skip to content

Commit a2947b4

Browse files
committed
cmd/pebble: enable blob file rewriting
Adjust the TargetGarbageRatio setting to enable blob file rewrites. This effectively enables blob file rewrite compactions in the ycsb nightly benchmarks that make use of value separation.
1 parent 5e1cd27 commit a2947b4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/pebble/db.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ func newPebbleDB(dir string) DB {
8888
MinimumSize: 512,
8989
MaxBlobReferenceDepth: 10,
9090
RewriteMinimumAge: 5 * time.Minute,
91-
// TODO(jackson): Adjust the TargetGarbageRatio to allow blob file rewrites.
92-
TargetGarbageRatio: 1.0, // Disabled.
91+
TargetGarbageRatio: 0.1,
9392
}
9493
}
9594

0 commit comments

Comments
 (0)