Skip to content
Daiki Arai edited this page Apr 19, 2017 · 2 revisions

Techs

Redis

To use heroku, not speed but efficiency.

Firstly,

  • User score: to get the hash every question & language by qLangScores = hgetall(${userName}:s)
  • Ranking:
    • each User: rankIndex = zcount(q + lang, 1, '(' + score)
    • best5: best5 = zrange(q + lang, 0, 4, 'WITHSCORES')
Clone this wiki locally