Is it ok to precompute data for better performance? For example, when player wins a game, I count number of won games for the particular player and write it to a dedicated table. Then, when I show overall ratings, I don't need to count number of won games for the players once again — I already have it precomputed.
Of course, it's possible, that precomputed data becomes unsyncronized with real values, but it's bearable.
Or is there another, more "professional" way to resolve the issue?