Hello, I have a question regarding the use of 2i. I've read some of the benefits (like less writes when inserting data) of using 2i instead of links when modeling data and it seems this is the preferred option nowadays when using Ripple (Ruby).
I now have some data that keeps links (and links back) in a hierarchical tree like (or parent-child like) structure storing sensor data. It allows us to drill down (and up) from country<->state<->city<->street<->device<->monthly_collection<->daily_collection<->records and we can use MapReduce jobs like this (Ruby code): devices = Riak::MapReduce.new(Ripple::client).add("countries", 'USA'). link(:bucket=>"state").link(:bucket=>"city"). link(:bucket=>"street").link(:bucket=>"device"). map("function(v){ return [v.key]; }", :keep => true).run Is there a way that 2i could be used instead of links and what would the MapReduce query look like? Thanks, Timo _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com