Wednesday, 15 January 2014

mapreduce - Riak: query array of 2i through Map Reduce -


Can I query secondary index in jobs in Rica, rather than just one key? Key ":" + "or" + + + + "" I "want to do something like this:

 " inputs ": {" bucket ": myBynet," index ":" MyIndex "," key "or" + key "," query ": [{" map ": {" language ":" javascript "," name ":" Riak.mapValuesJson "}}}}}  

But I have not received any support for this. The keys are not in any particular order, so I do not think that I can use questions.

You definitely want to reduce the map with it If you tell the key to your goal, you can limit the range and possibly improve the performance.

  {"Input": {"bucket": myBycket, "Index": "myIndex", "start": "key": {{"" "" "" "" "" "" "" | V.key == "key2") {return [& Lt; & lt; put you here & gt; & gt;]} and {return []}} "}}]}  

You should note that JavaScript According to the reduction of the map, it has been officially demoted, so you will be able to develop new development. You might want to use Nkshns.


No comments:

Post a Comment