49
submitted 2 months ago by [email protected] to c/[email protected]

I've noticed that the current sorting algorithms prioritize posts based on votes, which can sometimes lead to posts with high votes but few comments dominating the feed. This may not accurately reflect user engagement. On the other hand, sorting by "Most Comments" disregards votes entirely. I believe Lemmy should consider taking into account multiple user engagement metrics in their algorithms like comments, votes, time spent on a post, etc. What are your thoughts on this? Would you prefer a new sorting algorithm that combines various metrics, adjustments to existing algorithms to include more metrics, or do you like the current sorting algorithms available the way they are?

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 10 points 2 months ago

Building on this, I wonder if you could add a setting to customize your own algorithms. You could weight a variety of different metrics.

[-] [email protected] 8 points 2 months ago

This is not possible because sorting is done in the database, so adding a new sort option requires a database migration with new indexes, columns and updated queries. Not something that can be done with a simple plugin.

@[email protected] in https://github.com/LemmyNet/lemmy/issues/3936#issuecomment-1738847763

An alternative approach could involve utilizing an API endpoint that provides metadata for recent posts, allowing users to implement custom sorting logic on their client side using JavaScript. This API endpoint is currently accessible only to moderators and administrators

There is already such an API endpoint which is available for mods and admins.

@[email protected] in https://lemmy.ml/comment/9159963

[-] [email protected] 2 points 2 months ago

Why does sorting need to be in the db?

Wven still we can probably acheive a decent customisation partually customisable sorts

Say we only care about upvotes, downvotes, comments, timefactor

Say we break it down so u can set a custom weighting for each of these eg 0, .25, .5, .1 then make a sort for all combinations thats only 4^4 = 256 combinations its a lot but seems within the real of possibility we still avoid needing to custom sort for each user.

[-] [email protected] 3 points 2 months ago* (last edited 2 months ago)

The number of sorting algorithms needs to be much more limited than that; otherwise, it puts too much load on the server calculating all those combinations. It's important to strike a balance between customization and system performance to ensure smooth operation and optimal user experience.

[-] [email protected] 1 points 2 months ago

Its only increasing the sorting cost by a linear factor wont have an effect on the big O notation

[-] [email protected] 1 points 2 months ago

Caching. As an example, an all feed and it's associated indexes gets cached in the DB's memory, allowing it to keep pace with thousands of users. And there are millions of posts on a server, sorting has to be done in the DB or the volume of meta in memory would be astounding.

load more comments (3 replies)
this post was submitted on 13 Mar 2024
49 points (90.2% liked)

Ask Lemmy

24756 readers
1863 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 11 months ago
MODERATORS