From bb079d6a90f58be9bcb753c8a4fcc66d29039030 Mon Sep 17 00:00:00 2001 From: yangchenye Date: Sun, 10 Mar 2024 13:28:54 -0500 Subject: [PATCH] doc: week2-03-tiered.md (#57) --- 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: