Browse Source

Use larger write buffer size (256MB)

refactor-mempool
Roman Zeyde 7 years ago
parent
commit
eab81c2936
No known key found for this signature in database GPG Key ID: 87CAE5FA46917CBB
  1. 2
      src/store.rs

2
src/store.rs

@ -48,7 +48,7 @@ impl DBStore {
db_opts.set_compaction_style(rocksdb::DBCompactionStyle::Level);
db_opts.set_compression_type(rocksdb::DBCompressionType::Snappy);
db_opts.set_target_file_size_base(128 << 20);
db_opts.set_write_buffer_size(128 << 20);
db_opts.set_write_buffer_size(256 << 20);
db_opts.set_disable_auto_compactions(opts.bulk_import); // for initial bulk load
let mut block_opts = rocksdb::BlockBasedOptions::default();

Loading…
Cancel
Save