What's the cleanest way of going about this? How often should the data in the database be recalculated / at which events should the data be recalculated.https://omegle.onl/
I'm currently trying to model upvotes in posts. I don't know if it's faster if I just sum the vote integers (0, 1, or -1) every single time a post is loaded, or if I just store the initial upvote count and just increment and decrement it, and only calculate the sum every once in a while