From 86630d7802e0e7bef3edb8d92204d755343b84bf Mon Sep 17 00:00:00 2001 From: fh Date: Mon, 26 Feb 2024 22:15:05 +0800 Subject: [PATCH] reduce wr buffer size --- .cargo/{config => config.toml} | 0 core/Cargo.toml | 2 +- core/src/common/engines/rocks_backend.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename .cargo/{config => config.toml} (100%) diff --git a/.cargo/config b/.cargo/config.toml similarity index 100% rename from .cargo/config rename to .cargo/config.toml diff --git a/core/Cargo.toml b/core/Cargo.toml index 3d9c17b..81cbc81 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vsdb_core" -version = "0.62.0" +version = "0.62.1" authors = ["hui.fan@mail.ru"] edition = "2021" description = "A stuctured DB with some 'Git-like' features, mainly used in blockchain projects." diff --git a/core/src/common/engines/rocks_backend.rs b/core/src/common/engines/rocks_backend.rs index 48851fe..1cf8a98 100644 --- a/core/src/common/engines/rocks_backend.rs +++ b/core/src/common/engines/rocks_backend.rs @@ -400,7 +400,7 @@ fn rocksdb_open() -> Result<(DB, Vec)> { .parse::() .c(d!())? * 1024; - alt!((32 * G) < memsiz, 16 * G, G) / DATA_SET_NUM + alt!((32 * G) < memsiz, 8 * G, G) / DATA_SET_NUM } else { G / DATA_SET_NUM };