Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR]: Occasionally dump the database to disk if it is located in memory #1385

Open
Ac314 opened this issue Apr 22, 2024 · 1 comment
Open
Assignees
Labels
Type-Enhancement This is request for brand new feature.

Comments

@Ac314
Copy link

Ac314 commented Apr 22, 2024

Brief description of the feature request

Having the database resided in memory is good for performance but could make trouble if app session is quite long (and crash happens for some reasons). It is a good idea to dump the database to the disk periodically.

The dump itself could be performed (for example) under the following conditions:

  1. Database is marked with "dump needed" (meaning database changes were made since the last dump)
  2. Application is minimized (so we know that user is not making any operations with it now)
  3. Application is in idle mode for at least 60 seconds (so the app itself does not perform any operations for some time)

In this case it is safe to make a dump because it will have no interference with the user and/or app actions and will not affect performance.

@Ac314 Ac314 added the Type-Enhancement This is request for brand new feature. label Apr 22, 2024
@tuxwise
Copy link

tuxwise commented May 17, 2024

Seconding this, because on my machine shutting down the computer without closing RSS Guard first results in an old database state being restored, next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type-Enhancement This is request for brand new feature.
Projects
None yet
Development

No branches or pull requests

3 participants