Hello. I have been running a number of scripts on different bases, most of these bases are in the 10s of thousands of records.
I haven’t made many (if any) changes to these scripts but am noticing an incredible amount slow-down, primarily when I do a ‘while’ loop to update/create records.
Example:
while(updArr.length > 0){
await tbl.updateRecordsAsync(updArr.slice(0,50));
updArr = updArr.slice(50);
}
I wish I had numbers for how much longer these scripts are taking compared to how long they used to but it’s taking processes that used to take probably less than a minute and turning some of them into 5-10 minutes scripts. Far past an acceptable slow down for our use cases.
I’m wondering if anyone knows why this would be happening to us, across multiple bases and scripts. Thanks in advance!
Update:
Part of me thinks that this might have to do with lookups, rollups, and counts. When I run one of these scripts, it looks like it won’t advance till the next loop until these have been populated, even though the link exists. Not entirely sure if this is it.