opt write opt

This commit is contained in:
yihaoDeng 2023-04-25 09:49:28 +00:00
parent 9ba7726385
commit 10582fb5e0
2 changed files with 3 additions and 2 deletions

View File

@ -236,7 +236,7 @@ if(${BUILD_WITH_ROCKSDB})
endif(${TD_WINDOWS})
if(${TD_DARWIN} OR ${TD_WINDOWS})
if(${TD_DARWIN})
option(HAVE_THREAD_LOCAL "" OFF)
option(WITH_IOSTATS_CONTEXT "" OFF)
option(WITH_PERF_CONTEXT "" OFF)
@ -247,6 +247,7 @@ if(${BUILD_WITH_ROCKSDB})
endif(${TD_WINDOWS})
option(WITH_FALLOCATE "" OFF)
option(WITH_JEMALLOC "" OFF)
option(WITH_GFLAGS "" OFF)
option(PORTABLE "" ON)

View File

@ -390,7 +390,7 @@ int streamInitBackend(SStreamState* pState, char* path) {
// create the DB if it's not already present
rocksdb_options_set_create_if_missing(opts, 1);
rocksdb_options_set_create_missing_column_families(opts, 1);
rocksdb_options_set_write_buffer_size(opts, 128 << 20);
rocksdb_options_set_write_buffer_size(opts, 64 << 20);
rocksdb_options_set_recycle_log_file_num(opts, 6);
rocksdb_options_set_max_write_buffer_number(opts, 3);