Increase Index column buffers (#6268)

This commit is contained in:
carllin 2019-10-10 23:17:39 -07:00 committed by GitHub
parent 798065fc71
commit bf9c815b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -419,11 +419,11 @@ impl std::convert::From<rocksdb::Error> for Error {
}
fn get_cf_options(name: &'static str) -> Options {
use crate::blocktree::db::columns::{ShredCode, ShredData};
use crate::blocktree::db::columns::{ShredCode, ShredData, Index};
let mut options = Options::default();
match name {
ShredCode::NAME | ShredData::NAME => {
ShredCode::NAME | ShredData::NAME | Index::NAME => {
// 512MB * 8 = 4GB. 2 of these columns should take no more than 8GB of RAM
options.set_max_write_buffer_number(8);
options.set_write_buffer_size(MAX_WRITE_BUFFER_SIZE as usize);