Well, doing certain calculations in redis is good. The closer to the data
structure you are the better a job you can do, especially for very large
objects.
On Feb 4, 2014 11:49 PM, "Christopher Van" <notifications@github.com> wrote:

> In views/game/board.js:
>
> > +                res.json(output);
> > +                done();
> > +            });
> > +        }
> > +
> > +        var key = 'leaderboards:' + game + ':' + board;
> > +
> > +        if (friendsOnly) {
> > +            user.getUserIDFromEmail(client, email, function(err, id) {
> > +                if (err) {
> > +                    res.json(500, {error: err || 'db_error'});
> > +                    done();
> > +                    return;
> > +                }
> > +
> > +                var interstoreKey = key + ':' + id;
>
> yeah, we should be doing this on the fly. we should avoid using redis for
> doing computations if they don't need to be saved in redis. if you're
> zinterscore'ing and then deleting the key, that would suggest that redis
> isn't needed for that computation. is zrevrange what you want?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/cvan/galaxy-api/pull/52/files#r9452883>
> .
>