Feature #1257

Backup database in a background thread

Added by drbits over 10 years ago. Updated almost 9 years ago.

Status:ClosedStart date:02/08/2010
Priority:NormalDue date:
Assignee:-% Done:


Category:GeneralEstimated time:2.00 hours
Target version:040 - FarfarAway


Jiaz once mentioned that the database was saved to disk (as database.script) every time the link list is changed. This could significantly slow the GUI response and could cause lost connections.
1) The database should be backed up in a background thread, so that the GUI can continue operation.
2) While backing up the database, requests to backup the database should set a flag. If the flag is already set, nothing happens. Starting a new backup resets the flag. This may already be the case, but the behavior indicates that database backups are queued.
3) The database is backed up every 10 minutes to capture download progress. However, the evidence from the Board that if the JDownloader process is suddenly stoped, the next time JDownloader runs it does not use this backed up data (it appears to use the Zipped backup instead).

Target release for this fix is the release after this coming release (next+1).

Also available in: Atom PDF