Skip to content

Batch rocksdb updates during state recovery #351

Open
@daniil-quix

Description

@daniil-quix

Why?

Currently, when the application recovers from the changelog topic, it writes every state update to the rocksdb.
It's not very efficient and can lead to longer recovery times.

What?

Batch updates to RocksDB during recovery by a number of updates or total bytes in the batch.

Things to keep in mind:

  • Batches should not be too large, otherwise they will take too much memory.
  • Multiple batches can be accumulated simultaneously, one batch per recoverable state partition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions