News for hackers. Stuff that matters.
Re:1.25 Billion Key/Value Pairs in Redis 2.0.0-rc3 on a 32GB... by yosh on Sunday July 25, 2010 @11:03PM (#1546988)
I've noticed that sorted sets have noticeably more overhead than the other types.
Re:1.25 Billion Key/Value Pairs in Redis 2.0.0-rc3 on a 32GB... by subwindow on Sunday July 25, 2010 @11:18PM (#1547015)
If that's true, I wonder why. Maybe is they are trying to get O(1) access? Storing it the 'default' way would be O(log n) which isn't bad, but might still be unacceptable.
Re:1.25 Billion Key/Value Pairs in Redis 2.0.0-rc3 on a 32GB... by subwindow on Sunday July 25, 2010 @11:37PM (#1547053)
Ah, I found my answer. Sets are stored in both a skip list and a hash table. So the overhead is indeed high.