Use higher RocksDB parallelism

This commit is contained in:
Roman Zeyde 2018-06-28 13:02:55 +03:00
parent 88fb3dc17e
commit 4537fd9636
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -48,6 +48,7 @@ impl DBStore {
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.increase_parallelism(2);
db_opts.set_min_write_buffer_number(2);
db_opts.set_max_write_buffer_number(3);
db_opts.set_disable_auto_compactions(opts.bulk_import);