Skip to content

db: add migration to recompact user keys split across sstables #1495

@jbowens

Description

@jbowens

RocksDB and Pebble until #1470 supported writing a user key across multiple sstables. To maintain LSM invariants, Pebble is forced to compact such sstables together as an 'atomic compaction unit.' Since #1470, Pebble will no longer construct output sstables that share user keys.

We could write a migration that recompacts any sstables within a level that contain a shared user key. A future release would be able to remove the code surrounding atomic compaction units.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions