al3xicon
04/16/2025, 4:52 PMsearch.run().each()
, NetSuite states that the each()
function uses 10 units of governance. Is this only called once per search, regardless of the number of results? Or, does it use 10 units of governance per search result returned (aka every time it enters the callback function)? Another way of asking is, does the same amount of governance get used regardless of how many results are in a search?erictgrubaugh
04/16/2025, 5:04 PMeach()
itselfAnthony OConnor
04/16/2025, 5:06 PMerictgrubaugh
04/16/2025, 5:07 PMeach()
probably looks like
const each = (callback) => {
const results = doInternalSearchStuff() // This consumes the governance
results.forEach(callback)
}
al3xicon
04/16/2025, 5:11 PMcreece
04/16/2025, 5:41 PM