Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do you store each individual rating by each user or only the aggregate? If you store each individual rating you could go two ways: A) - If a rating is 3 stars or more, count as an up vote. - If a rating is 2 stars or less, count as a down vote.

B) Multiply the number of ratings for a given content by the .2xnumber of stars aggregated for that content.



Unfortunately I only store the total score and the number of votes




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: