this post was submitted on 20 Jun 2023
24 points (96.2% liked)

Haupteingang

56 readers
1 users here now

Die Standard-Community von feddit.de

In dieser Community geht es ausschließlich um alles rund um die Instanz!

Hast du Fragen? [email protected]

matrix chat: !feddit:tilde.fun

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (1 children)

Simple Idee und der Algorithmus dafür ist ja im verlinkten Artikel schon geschrieben. Hab leider auf github noch kein Issue oder PR dazu gefunden. Das sollte aber kurzfristig implementierbar sein.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Hab das hier auf die schnelle gefunden

Comment hot rank update https://github.com/LemmyNet/lemmy/blob/main/crates/db_schema/src/aggregates/comment_aggregates.rs

Hot rank function selbst scheint in utils.rs als sql Funktion deklariert zu sein aber auf dem Handy finde ich gerade den sql code selbst nicht..

edit: hier https://github.com/LemmyNet/lemmy/blob/37754189524e761626917295958cc156b1d21481/migrations/2021-01-05-200932_add_hot_rank_indexes/up.sql#L4