my code imports data from xml to the database.
at some point in time, the code began to work slowly and I needed to optimize it. To speed up the execution of the script, I began to use multithreading. after using multithreading, I got an error
MySQL error 2006 error: mysql server has gone away.
I began to change the wait_timeout
and innodb_log_file_size
server settings, but this did not solve the problem. Maybe someone came across this problem. What could be causing this error?