Skip to content

Support Delete Range operation #577

Description

@vigneshc

Re-partitioning a state store in a stream processor requires deleting a range of keys.
Consider a DB with key range from [1 - 1000]. Splitting this into two might result in two DBs, one with [1-500], and another with [501-1000].
This can be achieved with following steps

  1. Clone the DB to DB-1 and DB-2
  2. Delete ranges [501-1000] from DB-1 and ranges [1-500] from DB-2.
  3. DB-1 and DB-2 are the new partitions.

Step 2 can be a metadata only operation if we supported delete range that updates the manifest with deleted ranges.
A compaction can then do the actual deletion of keys.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrfcRFC required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions