ionelmc/django-redisboard — Issue #5: Django-Redisboard should have an option to fetch a key sample instead of all keys
Author: WoLpH
Created: 2012-02-20 18:41:33+00:00
State: open

Hi,

I guess that you have a completely different use-case for Redis, but for me it is currently impossible to use Django-Redisboard simply because it reads the entire Redis database.

Most of my databases have millions of keys so doing `conn.keys()` is a really bad idea.
Would it be a good idea to swap it out for a few hunder/thousand `conn.randomkey()` calls within a single pipeline so you get a nice sampleset?

The code in question:
https://github.com/ionelmc/django-redisboard/blob/master/src/redisboard/views.py#L86