Re:Realtime Metrics for 128 Million Users with Redis: 50ms +...
by simonw on Saturday March 24, 2012 @06:53AM
(#3749052)
The comments on the article address this - the OP is using UUIDs as the primary key for their users, but each user is also assigned an "analytics key" which is an integer that started at one. You can even use the redis INCR command to generate these on demand.
I'm using MongoDB and IDs are 12-byte values of which the first four are a timestamp. Does anyone know of a way to make this method work, ideally without adding another field to the collection?