For example i have a post which has likes and comments that need to be shown. What do you think of these two solutions?
- Add two new fields(counter) that need to be updated(inc and dec) for every like and comment.
- Aggregate total count of like and comment for each post and add as new fields?
I’ve already implemented the first solution, but i’m not so sure whether it is a good solution or not.
Thank you!