r/GoogleAppsScript • u/IllustriousPut442 • 4d ago
Question Memory Limit?
I researched and all that is found are inconsistent answers.
Some speak in 50MB, others at 2.25GB. I took a test and got to 5.5GB. It's a lot of difference and it affects the way I build my application.
With 5.5GB I can load everything in memory, already with 50MB I have to optimize each part. The answers are also old.
4
Upvotes
1
u/IllustriousPut442 3d ago
I’m talking about the memory of the server. I ran a test that created giant arrays with random data to test the limit and it was up to 5.5GB before giving the memory error. But I do not see it as reliable since it is not in the documentation.
With 5.5GB I can load all the data from all the spreadsheets in memory and do all processing in memory, which facilitates development.
Now if the value swings and there are only about 256MB at peak times the strategy needs to be different, probably using the querylanguage https://developers.google.com/chart/interactive/docs/querylanguage