keygen-sh / keygen-api

Keygen is a fair source software licensing and distribution API built with Ruby on Rails. For developers, by developers.
https://keygen.sh
Other
823 stars 52 forks source link

Only duplicate high-volume events per-day should be pruned #762

Closed ezekg closed 11 months ago

ezekg commented 1 year ago

Right now, we prune all high-volume event logs after 90 days. But I'd like to add a bit of nuance here so we don't lose license usage data. I.e. if a license is validated 1,000 times per day, we should at least keep a record of the fact that it was validated that day. Best way to do this, I think, would be to remove duplicate events per resource.