From 2d0c6b8e5becf3b572daf9174000288f070bb05a Mon Sep 17 00:00:00 2001 From: Ye Yangchen Date: Sat, 9 Mar 2024 20:16:55 -0600 Subject: [PATCH] doc: week2-03-tiered.md --- mini-lsm-book/src/week2-03-tiered.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini-lsm-book/src/week2-03-tiered.md b/mini-lsm-book/src/week2-03-tiered.md index b5b619e1..fc572fd9 100644 --- a/mini-lsm-book/src/week2-03-tiered.md +++ b/mini-lsm-book/src/week2-03-tiered.md @@ -82,7 +82,7 @@ The current trigger only reduces space amplification. We will need to add new tr ### Task 1.2: Triggered by Size Ratio -The next trigger is the size ratio trigger. For all tiers, if there is a tier `n` that `size of all previous tiers / this tier >= (1 + size_ratio) * 100%`, we will compact all `n` tiers. We only do this compaction with there are more than `min_merge_width` tiers to be merged. +The next trigger is the size ratio trigger. For all tiers, if there is a tier `n` that `size of all previous tiers / this tier >= (100 + size_ratio) * 100%`, we will compact all `n` tiers. We only do this compaction with there are more than `min_merge_width` tiers to be merged. With this trigger, you will observe the following in the compaction simulator: