Open ddevault opened 7 years ago
An "id" field will be needed(maybe ids?). Also, it probably wouldn't make sense to store history for anything but torrents and the server itself, unless you have other resources in mind.
Why not store it for everything? I wouldn't mind seeing historical up/down to a specific peer, each instance of reaching out to a tracker and what peers we got or stats we reported, etc.
It might get expensive storing everything, but i guess that is up to the users to decide how much they want to store, seeing as its already in ram already.
Only include a few relevant stats in each sample, i.e. upload/download but not path.
Have a configurable time for rolling up stats (averaging or summing them as appropriate) as they grow older than some age. Suggested defaults: