RE: How to handle a script to update 2 lack records with out hitting governance limits?
Recently we had a requirement to update more than 2 Lack records, we tried schedule script, its hitting governor limit, we moved to map reduce, again there also hitting governance… would like to know is there a way to handle script execution smoothly without hitting governance limits?
You should be gathering / formatting all your data in the getInputData and passing forward one record at a time to Map.
If you are able to do this, governance will likely no longer be an issue unless you’re hitting the time based limit.
If you are able to share your code I’d be happy to have a look if it’d help. (you can always DM me in slack)
Thank you 🙂