I have a map/reduce script that I am playing with and I am just trying to see how much usage a search paged data is taking. I have 1 runPaged and then multiple fetches. In my current script, it does the runPaged and 6 fetches which should be 35 governance. According to the doc, 5 for runPaged and then for each fetch it is an additional 5. I call runtime.getCurrentScript().getRemainingUsage() BEFORE i do anything and once again after it is done and both times it is returning 10000 which is max governance. Is there something not right here?
This is a cached copy. Click here to see the original post.