this post was submitted on 25 Jun 2023
24 points (100.0% liked)
Feddit UK
1352 readers
1 users here now
Community for the Feddit UK instance.
A place to log issues, and for the admins to communicate with everyone.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm not really sure what's going on but this the algorithm Lemmy uses in theory: https://join-lemmy.org/docs/contributors/07-ranking-algo.html
Could it be something to do with lemmy.world's federation skewing the votes/comments? The other thing is whether the ranking is cached in some way and that's broken or not invalidating early enough. Don't know.
I reckon something is just broken (at least for me). This post about lettuce has been my top hot post for days both on the web and via two different apps..
Just taking a cursory look at the code, it appears the ranking of posts per sort is stored in the database routinely via a background process on the server: https://github.com/LemmyNet/lemmy/blob/main/src/scheduled_tasks.rs#L31C10-L31C10
So, could be to do with that. If the server is underprovisioned, maybe it's taking an overly long time to run each calculation and everything is being held up. Complete speculation, though, at this point. 🤷
Edit: this is actually the 1.8 version of the code. Prior to this it looks like this was being done differently (see: https://github.com/LemmyNet/lemmy/pull/2952/files). So like Emperor says, it looks some optimization work was done here as presumably the queries were running too slowly.