r/programming • u/jrochkind • May 08 '12
Reddit’s ACTUAL story ranking algorithm explained (significant typos in previously published version)
http://bibwild.wordpress.com/2012/05/08/reddit-story-ranking-algorithm/
64
Upvotes
30
u/ketralnis May 08 '12 edited May 08 '12
No no no no no. This comes up every few months. There's not a typo. The code in the github repo is the live code used in production (specifically, the function in _sorts.pyx:
_hot).The postgres version of the
hotfunction isn't used in the mode that production runs in (thequery_cachemode), but it is used if the query cache is disabled, which I think is the default if you bring up a development VM. So in production, the Python_hotfunction is the only version used by most queries (although it's worth noting that it is post-processed by normalized_hot specifically for the front page to evenly mix together subreddits of different sizes)You're just incorrect.
1
u/rockum May 08 '12
It'd be nice if each user we could tweak that algorithm somehow. I don't like the current algorithm because some subreddits with high traffic and lots of upvotes (e.g. /r/guns) overwhelm the low-traffic subreddits I subscribe to. So, I end up unsubscribing from the high traffic ones and only occasionally visit them.
0
u/SeminoleVesicle May 08 '12
Reddit probably isn't running the published Github algorithm because there are special considerations as far as sponsored links (not the ads, but paid submissions from PR agencies etc. that are disguised as normal submissions) that they don't want publicized.
-4
u/bongwhacker May 08 '12
Apostrophe's and they're use's.
0
u/[deleted] May 08 '12
[deleted] — view deleted comment