Large numbers of keys

Dietrich Featherston dietrich.featherston at
Wed Jun 27 11:12:18 EDT 2012

LevelDB is a nice option with a key space that will not fit in memory. Whether or not bitcask will work for you depends on total memory capacity of the cluster and N value. Recommend using the bitcask capacity planner to see if it is a suitable backed for your hardware+data combination.


On Jun 27, 2012, at 7:19 AM, Eric Anderson <anderson at> wrote:

> Hi all,
> I did a quick computation, and figured that I need to be able to manage a minimum 5 billion keys roughly 80bytes each.  Since Bitcask needs all keys in memory, that's a lot of memory. How does it handle swapping?  I typically only need a portion of those keys available at a given time, so swapping them out would be fine if it was intelligent about that and loading it back in.  Meaning that if it has to pull in the whole index to add a new key, that would be an issue for me.  I typically need to add new keys pretty quickly and then access the most recent ones.  The older ones could swap out without too much worry.
> Would LevelDB help with this?
> Thanks!
> Eric Anderson
> Co-Founder
> _______________________________________________
> riak-users mailing list
> riak-users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list