Maybe-Useful-Cogs icon indicating copy to clipboard operation
Maybe-Useful-Cogs copied to clipboard

Calculating leader board takes a long time on big servers

Open travisgroth opened this issue 6 years ago • 0 comments

Hi - We've found that on servers with very large user populations, calculating 'top' can be extremely expensive as _required_exp() is built up in a loop for each level for each user. Run time with about 30k users is just under 5 minutes. We're on older code (pre-mongo) but the level->exp calculation implementation hasn't changed much from what I can tell.

Opened #60 to fix.

travisgroth avatar May 27 '18 19:05 travisgroth