Are there any tips on how to optimize the code where there are a lot of searches and submit records that would cause you to blow through the governance limits that NS sets? I thought about shoving all the results into an array in the loop and doing the submit after the loop, but that doesn't seem to work at all.
Any other ways to do this?