MySQL server has gone away?

More
10 years 8 months ago #1091 by Ahaidee
Hello,

I did always imported a feed with 500.000 products with no problem until now, since a couple of days I got the error: MySQL server has gone away, when I import large files. You have an idea, how I can change it.

Thanks

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #1092 by bram
Hi,


You didn't tell what kind of server you are running ( dedicated/VPS/shared) but 500K items is fairly big. It should run fine using the command line however it might ( and in your case will) get critical. Small changes might tip the iceberg.

MySQL server has gone away is usually an error whenever the php script takes to long to process. For example downloading the feed is a bit slower. (The dataase connection is initiated before download starts)

You can try to add
Code:
define('FORCE_PREFETCH','yes');

into your feeds.php

these will force the parser to download the feed first then run the import on the local file. This might not solve you prolem on the first run, but on a second the parser will use the cached local file.
The following user(s) said Thank You: mackelito, Ahaidee

Please Log in or Create an account to join the conversation.

Time to create page: 0.161 seconds