From 03dd384c76a03470eab4c8297ef22ac1c80e8fb7 Mon Sep 17 00:00:00 2001 From: zwang28 <70626450+zwang28@users.noreply.github.com> Date: Thu, 21 Nov 2024 17:18:21 +0800 Subject: [PATCH] refactor: update configuration (#19501) (#19516) --- src/common/src/config.rs | 2 +- src/config/docs.md | 2 +- src/config/example.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/src/config.rs b/src/common/src/config.rs index 8603ce7f9fd1..ddbd3602d7da 100644 --- a/src/common/src/config.rs +++ b/src/common/src/config.rs @@ -1739,7 +1739,7 @@ pub mod default { } pub fn time_travel_version_cache_capacity() -> u64 { - 32 + 2 } } diff --git a/src/config/docs.md b/src/config/docs.md index 0eaee5db1cf0..2f211d8afb78 100644 --- a/src/config/docs.md +++ b/src/config/docs.md @@ -154,7 +154,7 @@ This page is automatically generated by `./risedev generate-example-config` | shared_buffer_min_batch_flush_size_mb | The minimum total flush size of shared buffer spill. When a shared buffer spilled is trigger, the total flush size across multiple epochs should be at least higher than this size. | 800 | | sstable_id_remote_fetch_number | Number of SST ids fetched from meta per RPC | 10 | | table_info_statistic_history_times | The window size of table info statistic history. | 240 | -| time_travel_version_cache_capacity | | 32 | +| time_travel_version_cache_capacity | | 2 | | write_conflict_detection_enabled | Whether to enable write conflict detection | true | ## streaming diff --git a/src/config/example.toml b/src/config/example.toml index 73f7c09fd3c7..8ea3480ac199 100644 --- a/src/config/example.toml +++ b/src/config/example.toml @@ -172,7 +172,7 @@ table_info_statistic_history_times = 240 mem_table_spill_threshold = 4194304 compactor_max_overlap_sst_count = 64 compactor_max_preload_meta_file_count = 32 -time_travel_version_cache_capacity = 32 +time_travel_version_cache_capacity = 2 [storage.cache.block_cache_eviction] algorithm = "Lru"