Process very big csv file without timeout and memory error

前端 未结 5 1343
终归单人心
终归单人心 2020-12-02 11:16

At the moment I\'m writing an import script for a very big CSV file. The Problem is most times it stops after a while because of an timeout or it throws an memory error.

5条回答
  •  情话喂你
    2020-12-02 12:04

    Oh. Just make this script called as CLI, not via silly web interface. So, no execution time limit will affect it.
    And do not keep parsed results forever but write them down immediately - so, you won't be affected by memory limit either.

提交回复
热议问题