In my database, each item has a total_votes and total_ranking. When a user vote, I add +1 to the total votes and add its rating (1 to 5, 5 is the highest) to the total_ranking (total_ranking = total_ranking + user_vote).
This is all the data that I have. I want a better algorithm to calculate the "best" item. Right now I just do an average, but if one item has rating of 5, it can beat another item with 5000 rating and average of 4.9.
Is there any good alternative consider that I only have those two columns.
Update: I thought about using this formula
total_votes^(average_rating / 10) + (average_rating)


