Browse Source

Increase target_file_size to 256MB (for HDD)

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

2
src/store.rs

@ -47,7 +47,7 @@ impl DBStore {
db_opts.set_compaction_readahead_size(1 << 20);
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_target_file_size_base(256 << 20);
db_opts.set_write_buffer_size(256 << 20);
db_opts.set_disable_auto_compactions(opts.bulk_import); // for initial bulk load
db_opts.set_advise_random_on_open(!opts.bulk_import); // bulk load uses sequential I/O

Loading…
Cancel
Save