bancho.py
bancho.py copied to clipboard
recalculate statistics use sql
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