|
|
|
|
|
by guywithabike
4988 days ago
|
|
This doesn't make any sense to me. Why store the values in Redis and use Ruby to do simple math? If you're using Postgres already, just store the stats in Postgres and use an aggregate or window function to grab the stats. (And collect those stats with triggers, in the first place.) If you're using Mongo already, just grab your stats with a map reduce query. |
|
Just like this also has nothing intrinsically to do with Redis and could be any regular ole key-value store.