From 634b46a57a0b465648efbd4fe9885bd1a232802e Mon Sep 17 00:00:00 2001 From: imilinovic Date: Mon, 18 Mar 2024 21:38:22 +0100 Subject: [PATCH] increase buffer size --- src/storage/v2/property_disk_store.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/storage/v2/property_disk_store.cpp b/src/storage/v2/property_disk_store.cpp index 21b68a710..58f104ba6 100644 --- a/src/storage/v2/property_disk_store.cpp +++ b/src/storage/v2/property_disk_store.cpp @@ -27,7 +27,10 @@ PDS::PDS(std::filesystem::path root) : kvstore_{root / "pds", std::invoke([]() { rocksdb::Options options; rocksdb::BlockBasedTableOptions table_options; - table_options.block_cache = rocksdb::NewLRUCache(128 * 1024 * 1024); + options.write_buffer_size = 1024U << 20U; + options.writable_file_max_buffer_size = 64 * 1024 * 1024; + + table_options.block_cache = rocksdb::NewLRUCache(1024 * 1024 * 1024); table_options.filter_policy.reset(rocksdb::NewBloomFilterPolicy(sizeof(storage::Gid))); table_options.optimize_filters_for_memory = false; table_options.enable_index_compression = false;