I have two tables. Posts, Votes. I have a column in the Posts table named total_votes. Also I have a trigger for updating
Posts
Votes
total_votes