hinsxd
11/09/2018, 7:42 AMrank depends on the number of created Posts, some other numeral values also depends on the rank. What is the best way to organize data? The best way I could think of, is to do all calculation on Query, so that the rank values will not be written to database and thus reduce chance of error. But then there seems to be TONS of database calls. What do you think?albinekb
11/09/2018, 8:24 AMalbinekb
11/09/2018, 8:25 AMhinsxd
11/09/2018, 8:28 AMrecalculateRank() whenever a user create a post. This can save a lot of calculation each time when fetching user data.hinsxd
11/09/2018, 8:29 AMrecalculateRank() globally rather than calculating inside resolver, it should be safe from inconsistency