I’m trying to parse a large csv file and perform some operations on that data before saving it into the DB. However, I get a fatal error denoting that the memory limit has been reached. Is there any way I can run a function to save the current row number/pointer of the csv file so that the next time I run the script I can resume from that point?
Share
No, there isn’t. You should (for example) process the file line-by-line
This way you only have in memory, what you currently need.