From d03e6800bb6b7894e95628983fd614af2deb6c74 Mon Sep 17 00:00:00 2001 From: arriqaaq Date: Wed, 13 Nov 2024 20:17:45 +0530 Subject: [PATCH] chore: fix storage options --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7139022..864cb26 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,8 @@ opts.dir = "path/to/db".into(); // Database directory path // Storage configuration opts.disk_persistence = true; // false for in-memory only operation -opts.max_value_threshold = 4096; // Values larger than this stored in separate files -opts.max_segment_size = 268_435_456; // 256MB default segment size +opts.max_value_threshold = 4096; // Values smaller than this stored in memory +opts.max_segment_size = 268_435_456; // 256MB segment size opts.max_compaction_segment_size = 1_073_741_824; // 1GB max compaction segment // Transaction and versioning @@ -66,9 +66,8 @@ let store = Store::new(opts).expect("failed to create store"); ### Storage Options - `disk_persistence`: Controls whether data is persisted to disk or kept only in memory -- `max_value_threshold`: Values exceeding this size are stored in separate files for better memory management +- `max_value_threshold`: Values within this size are stored and served directly from memory - `max_segment_size`: Controls when new log segments are created, affects compaction frequency -- `max_compaction_segment_size`: Maximum size of segments after compaction ### Transaction Options