Hi :wave: How do you guys go about storing "simple...
# orm-help
d
Hi 👋 How do you guys go about storing "simple" analytics? For example, how much sales a product has or how many likes/dislikes a post has. You would ofc create a new db entry for a sale or like/dislike, but how do you guys go about showing that data? Do you guys keep the analytics on the model itself? (so having a likesTotal and dislikesTotal for example?) I know counting the amount every time the data has to be shown would be very inefficient, so what's a good approach?
To clarify, this is a very simple example but this would extend to storing how much money a product has made, maybe the amount of subs someone has, the average for something, etc
v
@Dog apologies for the delay in helping out with this problem, a few people from our team are on leave or just starting! 😊 Have you perhaps already answered these questions or are you still looking for help?