cockroachdb / pebble

RocksDB/LevelDB inspired key-value database in Go
BSD 3-Clause "New" or "Revised" License
4.94k stars 458 forks source link

compact: move tombstone density compactions #4161

Open jbowens opened 1 week ago

jbowens commented 1 week ago

The move compaction optimization doesn't apply to compactions picked as tombstone density compactions, resulting in unnecessarily rewriting sstables that could've been trivially moved to the next level.

I241101 19:33:30.159675 12035713 3@pebble/event.go:776 ⋮ [n30,s141,pebble] 67372  [JOB 2477] compacted(tombstone-density) L4 [5400119] (4.0MB) Score=0.00 + L5 [] (0B) Score=0.00 -> L5 [5400166] (4.0MB), in 0.0s (0.0s total), output rate 98MB/s

Jira issue: PEBBLE-301