1
0

More than 3 years have passed since last update.

GASメモリ不足のためエラー

Posted at

GASでメモリ不足エラーに悩まされたので記録です。

約25,000件(1件あたり10~20文字)の文字列を配列にセットし、
配列をループで、文字列変換処理を回し、変換後文字列配列にpush
変換後文字列配列を出力

という処理だったのですが、「メモリ不足のためエラーが発生しました」
というエラーで処理中断。178秒での中断でした。

対応策としては、配列に格納せずに、1件ずつ出力してメモリを軽くしてあげるしかないかなと

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0