Notice: [Demo] Sample data is ready

PostOne

Go

Why list pages should not SUM votes every request

2026-11-03 13:11 26 0

Real-time vote aggregation does not scale.

Prefer:

  • Maintain upvote_count / score on write
  • Lists read pre-aggregated fields
  • Vote changes in a transaction

Same idea as explainable Hot ranking.

Comments Default: by hot

Log in to join the discussion

  • Bob #55 Top pick

    Pre-aggregation saved us from SUM pain.

  • Erin #56

    Worth a team guideline.