Browse Source
Use larger write buffer size (128MB)
refactor-mempool
Roman Zeyde
7 years ago
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB
1 changed files with
1 additions and
3 deletions
-
src/store.rs
|
|
@ -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(); |
|
|
|