youtube image
From YouTube: Excel Office Scripts: Range read and write in perf optimized way (small data)

Description

If the range/data you are dealing with is quite large (say 100K cells), you may need to use advanced techniques like breaking-up your read/writes into multiple chunks. This video is really for small-mid size data setup.

For large dataset, refer to https://github.com/sumurthy/officescripts-projects/tree/main/Performance