Answer the question
In order to leave comments, you need to log in
How to make a rating?
Please tell me how to rate the site on a 5-point system like in the play market? How can I calculate this correctly? The table will include such data as (rating and comment) the rating will be 1, 2, 3, 4, 5 and how to correctly display the rating as in the play market?
Answer the question
In order to leave comments, you need to log in
Save everything to the database and aggregate. It can be done on the fly, it can be pre-calculated and stored in the cache. The algorithm can be any at your discretion: from arithmetic mean to any magic
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question