i’m trying to upload a csv file with 6000+ rows, each row having 6 columns.
when each line is processed the data is stored in different tables. some columns need a bit of referencing from other database tables to get a converted result before being inserted into the database.
howevwer, whenever i reach around row 500, i start getting a “Couldn’t fetch mysqli in” error. the strange thing is that this select that references a table after a certain input is read from the csv file, is used in a loop that went through the 400+ times before it.
if i reduce the rows of the csv file to 450 entries, the processing is ok.
another strange thing is that i have uploaded another csv file just before this with more lines, give or take 3mb in size. and there were no hitches, only difference is that the data is directly inserted into the database once it is read from the file. unlike the problematic one where the troubles always happens in the same loop that references a file to convert a number read from the file.
last thing i noted is that the error always happens in the same function, but never in the same entry, for example, in run 1, itll occur at row 491, in run 2, at row 522, and so on.
hope someone can help and point out what is happening, because i’m out of ideas at this point.
thanks.