Secondary index in riak

Christopher Meiklejohn cmeiklejohn at basho.com
Thu Feb 19 09:50:16 EST 2015


> On Feb 19, 2015, at 9:47 AM, Daniel Iwan <iwan.daniel at gmail.com> wrote:
> 
> My ideas:
> 1. Rewrite (read-write) object with new values for all indexes
> 2. Enable siblings on a bucket, write empty object with update for your
> index, that will create sibling.
> Then whenever you read object do merge of object+indexes. This may be more
> appropriate if you have big objects and want to "save" bandwidth
> 
> Option 1 is definitely simpler though.

Option 1 is the safest, least error-prone method for performing this.

- Chris

Christopher Meiklejohn
Senior Software Engineer
Basho Technologies, Inc.
cmeiklejohn at basho.com





More information about the riak-users mailing list