Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Disk state optimization: separate queue and history #207
Currently the download queue and history are stored in the same file on disk (queue).
The size of download queue can be seen as relatively constant. The history however grows over time. The queue must be written into disk pretty often - after every downloaded included file (typically a rar-file). The history on the other side is changed much less often - after the whole nzb-file is downloaded. This discrepancy leads to much more often writing of history data into disk than necessary.
That can result in a performance decrease if history is very large but the disk is very slow.
Solution: To avoid potential performance degradation the queue and history should be stored in separate files.