add 2i capability to multi_backend #227

wants to merge 4 commits into


None yet

3 participants


Here is a basic patch to make multi backend work with secondary indexing.

I have only tested with this simple positive case:

        {storage_backend, riak_kv_multi_backend},                                                                                                                                                     
        {multi_backend_default, <<"leveldb">>},                                                                                                                                                       
        {multi_backend, [                                                                                                                                                                             
           {<<"leveldb">>, riak_kv_eleveldb_backend, [                                                                                                                                                
             {data_root, "data/leveldb"}                                                                                                                                                              
           {<<"bitcask">>, riak_kv_bitcask_backend, [                                                                                                                                                 
             {data_root, "data/bitcask"}                                                                                                                                                              

krab$ curl -v -X PUT -d 'payload' -H 'X-Riak-Index-num_int: 2'
krab$ curl -v

krab$ curl -v

Obviously, this would need to go through your rigorous testing procedures; ... consider it a suggestion.


I think this would be a valuable addition.


We will need something like this working in order to be able to move forward on our next project.

What should I do to push on this?


Hi Kresten,

We took a different approach to solving this problem than the one you suggested. Please see The key difference is that we wanted to fix the capabilities system to prepare us for other capabilities that differ by bucket.

The end result is that multi_backend will support 2i in the next major release, assuming that my code makes it past my colleagues' review successfully. :)

Thanks again for your patch, your persistence, and your patience.


@rustyio rustyio closed this Dec 9, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment