To determine point scores for certain intervals (yearly/monthly/weekly), they have to be saved for those intervals, to my knowledge. Pseudo example:
userid | month | totalpoints
213 | 2018-05 | 352
213 | 2018-06 | 457
Is Stack Overflow/Stack Exchange doing it like this, storing the total scores per interval? Or really saving the points for each interval?
Problem:
If points from the past get changed, e.g. a post from 2018-05 gets deleted, then the totalpoints change and the table above would hold wrong data. A complete recalculation would be necessary.
The same goes for changes in the point system...
It would be great to get some insights into this probably more complex problem/system.