SameShirtEveryDay.com

Personal blog of the one called Alex Gorbatchev, from Toronto, Canada.

In search of a Digg rating algorithm

Posted on May 17th, 2007 by Alex Gorbatchev. In Web Development. No comments yet...

I’m not sure why, but all of a sudden I got interested in how Digg works. In particular how it decides which links get to be featured on the landing page. There’s quite a bit of thinking that goes behind that algorithm that drives it.

There doesn’t seem to be that much available out there. Here are a few interesting links that I found online:

select
  items.id as id,
  title,
  ctitle,
  url,
  bodytext,
  username,
  category_id,
  top_flag,
  category_autopost_threshold,
  dig_count,
  obscene_count,
  users.id as userid,
  approved,
  deleted,
  obscene_flag,
  sdelete_flag,
  catdaysback
from
  (items inner join users on userid = users.id)
where
  (approved = 1 and deleted = 0  and obscene_flag != 1) and
  (top_flag = 1 or (items.dig_count >= category_autopost_threshold)) and
  (sdelete_flag != 1)
order by date_promoted desc
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

No comments yet, be the first one!

Leave a Reply

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> , rel="nofollow" in use - no link dropping, no keywords or domains as names; do not spam, and do not advertise!

home
Subscribe to this blog Follow me on Twitter My bookmarks on Delicious My photography on Flickr