1
0
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:
Roman Zeyde 2018-08-02 13:19:05 +03:00
parent f66e5e48cc
commit 972a155ce0
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -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();