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

Consistency between DMHY.db and Warehouse/ #2

Open
fno2010 opened this issue Aug 26, 2016 · 1 comment
Open

Consistency between DMHY.db and Warehouse/ #2

fno2010 opened this issue Aug 26, 2016 · 1 comment

Comments

@fno2010
Copy link
Collaborator

fno2010 commented Aug 26, 2016

When an update task is interrupted accidentally, the torrrent files will be still downloaded and stored into Warehouse/ but the items cannot be committed into DMHY.db.

@VijayQin
Copy link
Owner

I think you must have noticed that there is no exception dealing in the code up to now.
Once the program encounter any exception, nothing will be commit to the database.
That's because I want to guarantee the integrity of data. In other words, if one item had been inserted into database, database should have every item of that day.
That's also why I am not suggesting user to use mode 4 (auto update). Mode 1 is more recommended.

However, warehouse is neither restrict to the integrity, nor used to data mining.
It is just for user to download animation or view the update list not through database.
Or when database broken down accidentally, it's still OK for user to view the list or download animation.

Therefore, neither integrity nor consistency of warehouse is required, all the thing it needed is availability.

Anyway, I think I should take exception dealing into consideration to offer us more debug detail, although I will not commit the incompleted task to database.

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

No branches or pull requests

2 participants