From 47cb4339f0378d9f32dd7baf7cc6c8fa38b9a34e Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Tue, 28 Mar 2023 02:27:20 +0000 Subject: [PATCH] add backend --- source/libs/stream/src/streamStateRocksdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/libs/stream/src/streamStateRocksdb.c b/source/libs/stream/src/streamStateRocksdb.c index 03c2473aa2..7266c17916 100644 --- a/source/libs/stream/src/streamStateRocksdb.c +++ b/source/libs/stream/src/streamStateRocksdb.c @@ -297,11 +297,11 @@ void destroyFunc(void* stata) { return; } int streamInitBackend(SStreamState* pState, char* path) { rocksdb_options_t* opts = rocksdb_options_create(); rocksdb_options_increase_parallelism(opts, 4); - rocksdb_options_optimize_level_style_compaction(opts, 0); - // create the DB if it's not already present + // rocksdb_options_optimize_level_style_compaction(opts, 0); + // 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, 64 << 20); + rocksdb_options_set_write_buffer_size(opts, 8 << 20); char* err = NULL; int cfLen = sizeof(cfName) / sizeof(cfName[0]);