Skip to content

write-back cache #169

Description

@ThomasWaldmann

After the initial implementation of #166 in #168 got some testing, we could also add a write-back cache.

For tools like borgbackup, doing an async write-back cache could speed up backups a lot:

A Store.store operation would return after cache has been updated, but would not wait until slower primary backend got updated.

But that also comes with some complexity:

  • guess we'll need some sort of sync or write barriers to keep primary backend updates in correct order (users usually will want to have data items written before reference to them from metadata items)
  • multi-threading or async
  • potential errors with the primary backend will happen async

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 request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions