django - How to update content popularity scoring such as Hacker News algorithm? -


i'm using customized version of hacker news popularity algorithm social site (items number of likes , comments). algorithm works don't know how update item scorings correctly (i'm storing score in item model meta data).

now i'm updating scores on every new , comment items listed during past 9 days. slow , resource heavy i'm looking better way keep scores date. problem every item needs new score when 1 changes keep time decay. better way this? i'm using django project.

ok. have done using different apps: first, need install either "dokterbob/django-popularity" on github or "thornomad/django-hitcount" track how link visited.

second, need count how many votes (likes or favorites) object receives. purpose, can try "brosner/django-voting", "apgwoz/django-favorites".

now have use piece of code --django-populars put them together. recommend looking this code first of see how works understand how put needed components.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -