Skip to content

Commit

Permalink
another compaction question
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi Z <iskyzh@gmail.com>
  • Loading branch information
skyzh committed Jan 30, 2024
1 parent 24b5f9e commit 83545ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mini-lsm-book/src/week3-04-watermark.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ Assume these are all keys in the engine. If we do a scan at ts=3, we will get `a

* In our implementation, we manage watermarks by ourselves with the lifecycle of `Transaction` (so-called un-managed mode). If the user intends to manage key timestamps and the watermarks by themselves (i.e., when they have their own timestamp generator), what do you need to do in the write_batch/get/scan API to validate their requests? Is there any architectural assumption we had that might be hard to maintain in this case?
* Why do we need to store an `Arc` of `Transaction` inside a transaction iterator?
* What is the condition to fully remove a key from the SST file?
* For now, we only remove a key when compacting to the bottom-most level. Is there any other prior time that we can remove the key? (Hint: you know the start/end key of each SST in all levels.)

## Bonus Tasks

Expand Down

0 comments on commit 83545ab

Please sign in to comment.