bancho.py icon indicating copy to clipboard operation
bancho.py copied to clipboard

recalculate statistics use sql

Open arily opened this issue 8 months ago • 0 comments

Describe your changes

  • recalculate user statistics using SQL, instead of pulling all scores from db to do the calculations, speeds up score submission
  • use incr operations on map statistics to avoid race condition

Related Issues / Projects

Checklist

  • [x] I've manually tested my code

arily avatar Apr 27 '25 16:04 arily