This topic contains 4 replies, has 0 voices, and was last updated by CREECE 7 years, 9 months ago.

  • Author
    Posts
  • #1309

    CREECE

    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.

  • #1310

    erictgrubaugh

    What phase are you doing this in?

  • #1311

    CREECE

    getInputData

  • #1312

    david.smith

    I don’t think governance is calculated/used in the getInput phase.

  • #1313

    CREECE

    Get Input Phase has 10k governance units as per documentation (All phases have a max of 10k as well with each invocation using varying amounts depending on the phase).

    Map/Reduce Governance Usage:

    https://system.na1.netsuite.com/app/…480364878.html

You must be logged in to reply to this topic.