jaruba / multipass-torrent

Collects information about torrents from various sources (dump, RSS, HTML pages) and associates the video files within with IMDB ID - stores data in a distributed DB
MIT License
80 stars 18 forks source link

Garbage collection for torrents #4

Open Ivshti opened 9 years ago

Ivshti commented 9 years ago

If a torrent hasn't been seeded or recently updated, we can garbage collect it.

Maybe this should be default behaviour, maybe not.

@sammuel86 @jaruba thoughts?

jaruba commented 9 years ago

It might be wise to give the option of not saving anything in a db, and also a way to delete the entire thing.

Ivshti commented 9 years ago

well, it can be very easily made to work in an in-memory db

I forgot to mention that to you but I realize now it's going to be great for your purposes.

To make it happen, we must patch mafintosh/multi-master-merge to work on top of another key-value store. Should be easy

Garbage collection is also something mmm must be patched for, since currently it doesn't delete stale log entries. I tried to patch it to do, but it exploded in some cases with KeyNotFound. In theory, this error should just be intercepted and ignored, but I haven't put time into figuring out how to do it