Generation Problems

I keep getting timeout errors from the database while compiling. The project has around 530 Apps. This mainly happens when I generate an entire project. The project resides on my PC but database is on the remote server.

When I run full generation 3rd time the errors do not show up. This is however super annoying to run it 3 times to get entire project compiled.

Since I am using shared hosting there isn’t really much I can do with MySQL settings, but perhaps somebody has some idea how to improve this performance ? It there anything in SC to work around this issue ?

ERROR EXAMPLE:

“an error occurred while connecting to the database. Connection attempt failed: SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond | Script: C:\Program Files\NetMake\v9php81\wwwroot\scriptcase\devel\class\generator\nmGerador.class.php linha: 619”