Hi, I have spent the last couple hours trying to understand how to store and/or search relationships between buckets of information. Currently, I have two buckets (will have more with more relationships) 'subjects' and 'data'. In subjects I store data such as:
http://.../riak/subjects/001 has { "name" : "First Last", "age_int": 25 }, http://.../riak/subjects/002 has { "name" : "First Last", "age_int": 55 } so on. and in 'data' I have : { "subject" : "001", "complication": [0, 1] }, { "subject" : "002", "complication": [1] } Now my question is how do I query information like: Where Subject has age_int between 20 to 100 & complication includes 1? I thought I could accomplish this with map reduce, but I can access only one bucket at a time. Is there a different way I should be storing data like this? Or should I denormalize the subject into 'data'? Regards, Kartik _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com