mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 01:43:29 +01:00
Use larger write buffer size (128MB)
This commit is contained in:
parent
f66e5e48cc
commit
972a155ce0
@ -48,9 +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(64 << 20);
|
||||
db_opts.set_min_write_buffer_number(2);
|
||||
db_opts.set_max_write_buffer_number(3);
|
||||
db_opts.set_write_buffer_size(128 << 20);
|
||||
db_opts.set_disable_auto_compactions(opts.bulk_import); // for initial bulk load
|
||||
|
||||
let mut block_opts = rocksdb::BlockBasedOptions::default();
|
||||
|
Loading…
Reference in New Issue
Block a user