Skip to content

Commit 22b4400

Browse files
committed
reduce ram usage
1 parent ee2f0eb commit 22b4400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/storage/rocksdb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl RocksDbBackend {
4444
opts.increase_parallelism(num_cpus::get() as i32);
4545
opts.set_max_background_jobs(4);
4646
opts.set_max_write_buffer_number(3);
47-
opts.set_write_buffer_size(10 * 1024 * 1024 * 1024);
47+
opts.set_write_buffer_size(8 * 1024 * 1024 * 1024);
4848
opts.set_target_file_size_base(64 * 1024 * 1024); // 64MB
4949

5050
let cf_descriptors = vec![

0 commit comments

Comments
 (0)