@@ -57,8 +57,8 @@ We are working on a new version of the mini-lsm tutorial that is split into 3 we
|
||||
| 1.7 | Bloom Filter and Key Compression | ✅ | ✅ | ✅ |
|
||||
| 2.1 | Compaction Implementation | ✅ | ✅ | ✅ |
|
||||
| 2.2 | Compaction Strategy - Simple | ✅ | ✅ | ✅ |
|
||||
| 2.3 | Compaction Strategy - Tiered | ✅ | 🚧 | 🚧 |
|
||||
| 2.4 | Compaction Strategy - Leveled | ✅ | 🚧 | 🚧 |
|
||||
| 2.3 | Compaction Strategy - Tiered | ✅ | ✅ | 🚧 |
|
||||
| 2.4 | Compaction Strategy - Leveled | ✅ | ✅ | 🚧 |
|
||||
| 2.5 | Manifest | ✅ | 🚧 | 🚧 |
|
||||
| 2.6 | Write-Ahead Log | ✅ | 🚧 | 🚧 |
|
||||
| 2.7 | Batch Write + Checksum | | | |
|
||||
|
||||
@@ -19,6 +19,8 @@ The tiered compaction we talk about in this chapter is the same as RocksDB's uni
|
||||
|
||||
## Task 2: Integrate with the Read Path
|
||||
|
||||
As tiered compaction does not use the L0 level of the LSM state, you should directly flush your memtables to a new tier instead of as an L0 SST. You can use `self.compaction_controller.flush_to_l0()` to know whether to flush to L0. You may use the first output SST id as the level/tier id for your new sorted run.
|
||||
|
||||
## Test Your Understanding
|
||||
|
||||
* What are the pros/cons of universal compaction compared with simple leveled/tiered compaction?
|
||||
|
||||
Reference in New Issue
Block a user