I am using a 3 node Riak Cluster with a number of buckets. I have a bucket called user_account which has user information like name, address etc.
user_account = {"id" => 1,"name"=>"abc", "address"=>"xyz"}
There is another bucket user_metadata which updates this data. A record in it looks like:
user_metadata = {"id" => 1, "created_at"=>"20140304", "updated_at" => "20140304"}
Both the buckets have the same key which is the id. I want to run map_reduce on bucket user_account for all the keys which are updated within a date range in user_metadata. Is there a way I can do this, also currently there is no index for updated_at key in user_metadata bucket.