Currently quest and achievement data is handled inefficiently, causing extra delay to requests and stress on the internal network.
Scope of the refactor:
-
Move quests and achievements to their own MongoDB collections
- Make a script migrating the DB(?)
-
The /players/:id endpoint no longer needs to wait for promise from parseAchievements since total achievement points are now included in the Hypixel API
Some relevant parts of code:
https://github.com/slothpixel/core/blob/master/routes/spec.js#L256-L266
https://github.com/slothpixel/core/blob/master/processors/processPlayerData.js#L131-L136
Currently quest and achievement data is handled inefficiently, causing extra delay to requests and stress on the internal network.
Scope of the refactor:
Move quests and achievements to their own MongoDB collections
The
/players/:idendpoint no longer needs to wait for promise fromparseAchievementssince total achievement points are now included in the Hypixel APISome relevant parts of code:
https://github.com/slothpixel/core/blob/master/routes/spec.js#L256-L266
https://github.com/slothpixel/core/blob/master/processors/processPlayerData.js#L131-L136