Skip to content

Commit

Permalink
reduce ram usage
Browse files Browse the repository at this point in the history
  • Loading branch information
snowmead committed Sep 24, 2024
1 parent ee2f0eb commit 22b4400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/rocksdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl RocksDbBackend {
opts.increase_parallelism(num_cpus::get() as i32);
opts.set_max_background_jobs(4);
opts.set_max_write_buffer_number(3);
opts.set_write_buffer_size(10 * 1024 * 1024 * 1024);
opts.set_write_buffer_size(8 * 1024 * 1024 * 1024);
opts.set_target_file_size_base(64 * 1024 * 1024); // 64MB

let cf_descriptors = vec![
Expand Down

0 comments on commit 22b4400

Please sign in to comment.