Re: Secondary index in riak

2015-02-20 Thread Jose G. Quenum
Thanks to all. I'll take that option. Will let you guys know if I get any strange behavior. Sent from my iPad > On Feb 19, 2015, at 4:50 PM, Christopher Meiklejohn > wrote: > > >> On Feb 19, 2015, at 9:47 AM, Daniel Iwan wrote: >> >> My ideas: >> 1. Rewrite (read-write) object with new va

Re: Secondary index in riak

2015-02-19 Thread Christopher Meiklejohn
> On Feb 19, 2015, at 9:47 AM, Daniel Iwan 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

Re: Secondary index in riak

2015-02-19 Thread Daniel Iwan
to "save" bandwidth Option 1 is definitely simpler though. -- View this message in context: http://riak-users.197444.n3.nabble.com/Secondary-index-in-riak-tp4032650p4032652.html Sent from the Riak Users mailing list archive at Nabble.com. __

Re: Secondary index in riak

2015-02-19 Thread Christopher Meiklejohn
> On Feb 19, 2015, at 9:06 AM, Jose G. Quenum > wrote: > > Hi all, > I'm getting into a scenario where I'd like to use a secondary index on a > particular field in my riak object/data. However the value of the field might > change albeit very very rarely. So I was thinking I could just reinde

Secondary index in riak

2015-02-19 Thread Jose G. Quenum
Hi all, I'm getting into a scenario where I'd like to use a secondary index on a particular field in my riak object/data. However the value of the field might change albeit very very rarely. So I was thinking I could just reindex using the new value. What's the right syntax to delete and add a n