Skip to content

[Feature] Fast resume - quick restart without rehashing#203

Merged
ikatson merged 13 commits intomainfrom
fastresume
Aug 21, 2024
Merged

[Feature] Fast resume - quick restart without rehashing#203
ikatson merged 13 commits intomainfrom
fastresume

Conversation

@ikatson
Copy link
Copy Markdown
Owner

@ikatson ikatson commented Aug 20, 2024

First mentioned in #138

rqbit can now now store bitfields in persistent storage which allows quick restarts without rehashing. Disabled by default to flesh out bugs.

Usage:

rqbit server start --fastresume ...

This required some refactoring throughout to thread this through and let bitfields be memory mapped or backed by postgres (if using that as the store)

TODO:

  • make flush async
  • if restarting from error state, clear the bitfield state first
  • add to desktop UI

@ikatson ikatson mentioned this pull request Aug 20, 2024
@ikatson ikatson merged commit ee2ad71 into main Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant